File rpsl/class.h

  Copyright (c) 2002                                        RIPE NCC

All Rights Reserved
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of the author not be used in advertising or publicity pertaining to distribution of the software without specific, written prior permission.
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS; IN NO EVENT SHALL AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Included in: rpsl/syntax_api.c

Included Files


Preprocessor definitions

#define CLASS_H

#define MAX_CLASS_ATTR 50


Typedef attr_choice_t

typedef enum {...} attr_choice_t
enum 
   { 
     ATTR_MANDATORY; 
     ATTR_OPTIONAL; 
     ATTR_GENERATED; 
   } 

Typedef attr_number_t

typedef enum {...} attr_number_t
enum 
   { 
     ATTR_SINGLE; 
     ATTR_MULTIPLE; 
   } 

Typedef class_attr_t

typedef struct {...} class_attr_t
struct 
   { 
     int offset; 
     attr_choice_t choice; 
     attr_number_t number; 
   } 

Typedef class_t

typedef struct {...} class_t
struct 
   { 
     char* name; 
     int id; 
     int num_attr; 
     class_attr_t attr[50]; 
     GHashTable* attr_hash; 
   }