add smpp34_tlv_for_each() helper

So we don't need to remember this is an opencoded list of TLVs.

Change-Id: I446929feed049d0411e1629ca263e2bc41f714cc
This commit is contained in:
Pablo Neira Ayuso 2017-08-11 12:11:46 +02:00
parent cc0bcd6bc0
commit 9b3cefca21
1 changed files with 3 additions and 0 deletions

View File

@ -86,6 +86,9 @@ typedef struct alert_notification_t alert_notification_t;
OCTET16( inst, octet, size ); \
} par;
#define smpp34_tlv_for_each(pos, head) \
for (pos = (head); pos != NULL; pos = pos->next)
#define DAD( inst, par, do_dest_address ) dad_t *par;
#define UU2( inst, par, size ) union { \
struct { \