X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=libasn1parser%2Fasn1p_xports.h;fp=libasn1parser%2Fasn1p_xports.h;h=0c65be092aa493556609100ad2ff968f8b2ea260;hb=70ee6fc793ec8e828067a3569849b6c216054497;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=com%2Fasn1c.git diff --git a/libasn1parser/asn1p_xports.h b/libasn1parser/asn1p_xports.h new file mode 100644 index 0000000..0c65be0 --- /dev/null +++ b/libasn1parser/asn1p_xports.h @@ -0,0 +1,43 @@ +/* + * Imports and exports structure. + */ +#ifndef ASN1_PARSE_XPORTS_H +#define ASN1_PARSE_XPORTS_H + + +typedef struct asn1p_xports_s { + /* + * Type of the xports structure. + */ + enum asn1p_xports { + XPT_IMPORTS, + XPT_EXPORTS, + } xports_type; + + /* + * Module name and optional OID, occur after FROM. + */ + char *fromModuleName; /* Name of the module */ + struct AssignedIdentifier { + asn1p_oid_t *oid; /* Optional OID of the module */ + asn1p_value_t *value; /* DefinedValue */ + } identifier; + + /* + * Number of entities to import. + */ + TQ_HEAD(struct asn1p_expr_s) xp_members; + + /* + * Pointer to the next xports structure in whatever list. + */ + TQ_ENTRY(struct asn1p_xports_s) xp_next; +} asn1p_xports_t; + +/* + * Constructor and destructor. + */ +asn1p_xports_t *asn1p_xports_new(void); +void asn1p_xports_free(asn1p_xports_t *); + +#endif /* ASN1_PARSE_XPORTS_H */