| 1 |
#ifndef _corby_corby_h |
| 2 |
#define _corby_corby_h |
| 3 |
|
| 4 |
/* |
| 5 |
* Copyright 2003, 2004 Porchdog Software. All rights reserved. |
| 6 |
* |
| 7 |
* Redistribution and use in source and binary forms, with or without modification, |
| 8 |
* are permitted provided that the following conditions are met: |
| 9 |
* |
| 10 |
* 1. Redistributions of source code must retain the above copyright notice, |
| 11 |
* this list of conditions and the following disclaimer. |
| 12 |
* 2. Redistributions in binary form must reproduce the above copyright notice, |
| 13 |
* this list of conditions and the following disclaimer in the documentation |
| 14 |
* and/or other materials provided with the distribution. |
| 15 |
* |
| 16 |
* THIS SOFTWARE IS PROVIDED BY PORCHDOG SOFTWARE ``AS IS'' AND ANY |
| 17 |
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 18 |
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
| 19 |
* IN NO EVENT SHALL THE HOWL PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, |
| 20 |
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 21 |
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 22 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
| 23 |
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE |
| 24 |
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 25 |
* OF THE POSSIBILITY OF SUCH DAMAGE. |
| 26 |
* |
| 27 |
* The views and conclusions contained in the software and documentation are those |
| 28 |
* of the authors and should not be interpreted as representing official policies, |
| 29 |
* either expressed or implied, of Porchdog Software. |
| 30 |
*/ |
| 31 |
|
| 32 |
#include <salt/platform.h> |
| 33 |
|
| 34 |
/* |
| 35 |
* corby limits |
| 36 |
*/ |
| 37 |
#define SW_CORBY_OID_LEN 32 |
| 38 |
|
| 39 |
|
| 40 |
/* |
| 41 |
* protocol tags. the only standard one is TAG_INTERNET_IIOP. |
| 42 |
* the others are proprietary pandora corby protocols. |
| 43 |
*/ |
| 44 |
#define SW_TAG_INTERNET_IOP 0 |
| 45 |
#define SW_TAG_UIOP 250 |
| 46 |
#define SW_TAG_MIOP 251 |
| 47 |
#define SW_MIOP_ADDR "231.255.255.250" |
| 48 |
typedef sw_uint32 sw_corby_protocol_tag; |
| 49 |
|
| 50 |
|
| 51 |
/* |
| 52 |
* error codes |
| 53 |
*/ |
| 54 |
#define SW_E_CORBY_BASE 0x80000500 |
| 55 |
#define SW_E_CORBY_UNKNOWN (SW_E_CORBY_BASE + 0) |
| 56 |
#define SW_E_CORBY_BAD_CONFIG (SW_E_CORBY_BASE + 1) |
| 57 |
#define SW_E_CORBY_NO_INTERFACE (SW_E_CORBY_BASE + 2) |
| 58 |
#define SW_E_CORBY_BAD_URL (SW_E_CORBY_BASE + 3) |
| 59 |
#define SW_E_CORBY_BAD_NAME (SW_E_CORBY_BASE + 4) |
| 60 |
#define SW_E_CORBY_BAD_MESSAGE (SW_E_CORBY_BASE + 5) |
| 61 |
#define SW_E_CORBY_BAD_VERSION (SW_E_CORBY_BASE + 6) |
| 62 |
#define SW_E_CORBY_BAD_OID (SW_E_CORBY_BASE + 7) |
| 63 |
#define SW_E_CORBY_BAD_OPERATION (SW_E_CORBY_BASE + 8) |
| 64 |
#define SW_E_CORBY_MARSHAL (SW_E_CORBY_BASE + 10) |
| 65 |
#define SW_E_CORBY_OBJECT_NOT_EXIST (SW_E_CORBY_BASE + 11) |
| 66 |
|
| 67 |
|
| 68 |
#endif |