libisdn
asn1_list.h File Reference

Go to the source code of this file.

Defines

#define ASN1_INIT_HEAD(x)
#define ASN1_INIT_LIST(x)
#define ASN1_OBJECT(x)   ((struct asn1_object *)(x))

Define Documentation

#define ASN1_INIT_HEAD (   x)
Value:
do { \
                struct asn1_list *__p = (x);    \
                __p->head = (x);                \
                __p->prev = (x);                \
                __p->next = (x);                \
        } while(0);

Definition at line 125 of file asn1_list.h.

Referenced by asn1_create(), and asn1_decode().

#define ASN1_INIT_LIST (   x)
Value:
do { \
                struct asn1_list *__p = (x);    \
                __p->head = NULL;               \
                __p->prev = NULL;               \
                __p->next = NULL;               \
        } while(0);

Definition at line 132 of file asn1_list.h.

#define ASN1_OBJECT (   x)    ((struct asn1_object *)(x))

Cast pointer to ASN.1 base object

Note:
use this for all asn1_obj_* functions

Definition at line 174 of file asn1_list.h.