1 | /*************************************** 2 | $Revision: 1.3 $ 3 | 4 | Status: NOT REVUED, NOT TESTED 5 | 6 | Author(s): Andrei Robachevsky 7 | 8 | ******************/ /****************** 9 | Modification History: 10 | andrei (17/01/2000) Created. 11 | ******************/ /****************** 12 | Copyright (c) 2000 RIPE NCC 13 | 14 | All Rights Reserved 15 | 16 | Permission to use, copy, modify, and distribute this software and its 17 | documentation for any purpose and without fee is hereby granted, 18 | provided that the above copyright notice appear in all copies and that 19 | both that copyright notice and this permission notice appear in 20 | supporting documentation, and that the name of the author not be 21 | used in advertising or publicity pertaining to distribution of the 22 | software without specific, written prior permission. 23 | 24 | THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 25 | ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL 26 | AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 27 | DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN 28 | AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 29 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 30 | ***************************************/ 31 | #ifndef _UD_H 32 | #define _UD_H 33 | 34 | /* Error codes definition */ 35 | #define ERROR_U_MEM 0x0001 // memory allocation error 36 | #define ERROR_U_DBS 0x0002 // database (sql) error 37 | #define ERROR_U_OBJ 0x0004 // referential integrity failure 38 | #define ERROR_U_AUT 0x0008 // membership authirization failure 39 | 40 | #define ERROR_U_BADOP 0x0010 // unknown operation 41 | #define ERROR_U_COP 0x0020 // conflicting operation (e.g. deletig non-existent object) 42 | #define ERROR_U_NSUP 0x0040 // object type not supported 43 | #define ERROR_U_BUG 0x0080 // software bug - report to developer 44 | 45 | /* macros for update mode operation */ 46 | #define IS_DUMMY_ALLOWED(a) ((a)&0x01) 47 | #define IS_UPDATE(a) ((a)&0x02) 48 | #define IS_STANDALONE(a) ((a)&0x04) 49 | 50 | 51 | 52 | void UD_do_nrtm(); 53 | void UD_do_updates(void *args); 54 | 55 | 56 | #endif /* _UD_H */ 57 |