gwenhywfar 4.0.3
|
#include "tlv_p.h"
#include <gwenhywfar/debug.h>
#include <gwenhywfar/inherit.h>
#include <gwenhywfar/misc.h>
#include <gwenhywfar/text.h>
#include <stdlib.h>
#include <assert.h>
#include <string.h>
Go to the source code of this file.
Defines | |
#define | DISABLE_DEBUGLOG |
Functions | |
GWEN_TLV * | GWEN_TLV_create (unsigned int tagType, unsigned int tagMode, const void *p, unsigned int dlen, int isBerTlv) |
int | GWEN_TLV_DirectlyToBuffer (unsigned int tagType, unsigned int tagMode, const void *tagData, int tagLength, int isBerTlv, GWEN_BUFFER *mbuf) |
void | GWEN_TLV_free (GWEN_TLV *tlv) |
GWEN_TLV * | GWEN_TLV_fromBuffer (GWEN_BUFFER *mbuf, int isBerTlv) |
unsigned int | GWEN_TLV_GetClass (const GWEN_TLV *tlv) |
const void * | GWEN_TLV_GetTagData (const GWEN_TLV *tlv) |
unsigned int | GWEN_TLV_GetTagLength (const GWEN_TLV *tlv) |
unsigned int | GWEN_TLV_GetTagSize (const GWEN_TLV *tlv) |
unsigned int | GWEN_TLV_GetTagType (const GWEN_TLV *tlv) |
int | GWEN_TLV_IsBerTlv (const GWEN_TLV *tlv) |
int | GWEN_TLV_IsContructed (const GWEN_TLV *tlv) |
GWEN_TLV * | GWEN_TLV_new () |
int | GWEN_TLV_toBuffer (GWEN_TLV *tlv, GWEN_BUFFER *mbuf) |
GWEN_TLV* GWEN_TLV_create | ( | unsigned int | tagType, |
unsigned int | tagMode, | ||
const void * | p, | ||
unsigned int | dlen, | ||
int | isBerTlv | ||
) |
Definition at line 53 of file tlv.c.
References DBG_ERROR, GWEN_LOGDOMAIN, and GWEN_TLV_new().
int GWEN_TLV_DirectlyToBuffer | ( | unsigned int | tagType, |
unsigned int | tagMode, | ||
const void * | tagData, | ||
int | tagLength, | ||
int | isBerTlv, | ||
GWEN_BUFFER * | mbuf | ||
) |
Definition at line 279 of file tlv.c.
References GWEN_Buffer_AppendByte(), and GWEN_Buffer_AppendBytes().
Referenced by GWEN_TLV_toBuffer().
void GWEN_TLV_free | ( | GWEN_TLV * | tlv | ) |
Definition at line 43 of file tlv.c.
References GWEN_FREE_OBJECT, and GWEN_LIST_FINI.
GWEN_TLV* GWEN_TLV_fromBuffer | ( | GWEN_BUFFER * | mbuf, |
int | isBerTlv | ||
) |
Definition at line 131 of file tlv.c.
References DBG_DEBUG, DBG_ERROR, GWEN_Buffer_GetBytesLeft(), GWEN_Buffer_GetPos(), GWEN_Buffer_GetPosPointer(), GWEN_Buffer_IncrementPos(), GWEN_LOGDOMAIN, and GWEN_TLV_new().
GWEN_TLV* GWEN_TLV_new | ( | ) |
Definition at line 32 of file tlv.c.
References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_TLV_create(), and GWEN_TLV_fromBuffer().
int GWEN_TLV_toBuffer | ( | GWEN_TLV * | tlv, |
GWEN_BUFFER * | mbuf | ||
) |
Definition at line 267 of file tlv.c.
References GWEN_TLV_DirectlyToBuffer().