Source File up/UP_extrnl_syntax.h

    1    | /******************
    2    |   Copyright (c) 2002                                        RIPE NCC
    3    |
    4    |   All Rights Reserved
    5    |
    6    |   Permission to use, copy, modify, and distribute this software and its
    7    |   documentation for any purpose and without fee is hereby granted,
    8    |   provided that the above copyright notice appear in all copies and that
    9    |   both that copyright notice and this permission notice appear in
    10   |   supporting documentation, and that the name of the author not be
    11   |   used in advertising or publicity pertaining to distribution of the
    12   |   software without specific, written prior permission.
    13   |
    14   |   THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
    15   |   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL
    16   |   AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
    17   |   DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
    18   |   AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
    19   |   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    20   |   ***************************************/
    21   |
    22   | #ifndef UP_EXTRNL_SYNTAX_H
    23   | #define UP_EXTRNL_SYNTAX_H
    24   |
    25   | #include <glib.h>
    26   | #include "rip.h"
    27   |
    28   | #define UP_EXTSYN_OK         0
    29   | #define UP_EXTSYN_ERR        1
    30   | #define UP_EXTSYN_WARN       2
    31   | #define UP_EXTSYN_ERR_WARN   3
    32   |
    33   |
    34   | typedef struct _external_syntax_struct {
    35   |   int result;
    36   |   char * error_str;
    37   |   char * warning_str;
    38   |   char * new_obj;
    39   | } external_syntax_struct;
    40   |
    41   | typedef struct _attribute_struct {
    42   |   char * type;
    43   |   char * content;
    44   | } attribute_struct;
    45   |
    46   | typedef struct _date_syntax_struct {
    47   |   int result;
    48   |   char * error_str;
    49   | } date_syntax_struct;
    50   |
    51   |
    52   | external_syntax_struct * UP_check_external_syntax(rpsl_object_t * external_syntax_obj);
    53   |
    54   | char * UP_generate_kc_attrs(rpsl_object_t * generated_obj);
    55   |
    56   | /* GSList * up_get_attribute_list(Object * o, char * text); */
    57   |
    58   | void up_reconstruct_object(rpsl_object_t * external_syntax_obj, external_syntax_struct *result);
    59   |
    60   | #endif