Main Page | Class List | Directories | File List | Class Members | File Members

cc_message_list.c File Reference

CKPM C parser message list definitions. More...

#include <stdlib.h>
#include <string.h>
#include "cpp_io.h"
#include "cc_message_list.h"

Functions

_message_listMessage_List_Append (struct _message_list *ml, char *m, msgtype_t t)
 append one message to the message list
_message_listMessage_List_Shift (struct _message_list *ml, char **m, msgtype_t *t)
 take the first message from a message list
void Message_Destroy (struct _message_list *ml)
 destroy a complete message list
void Message_List_Print (struct _message_list *ml, int fd, char *m, msgtype_t *t)
 destroy a complete message list


Detailed Description

CKPM C parser message list definitions.


Function Documentation

void Message_Destroy struct _message_list ml  ) 
 

destroy a complete message list

Parameters:
ml the message list

struct _message_list* Message_List_Append struct _message_list ml,
char *  m,
msgtype_t  t
 

append one message to the message list

Parameters:
ml the message list
m the message to be appended at the list
t a pointer to an array for incrementing the number of the according message type
Returns:
the pointer to the new list

void Message_List_Print struct _message_list ml,
int  fd,
char *  m,
msgtype_t *  t
 

destroy a complete message list

Parameters:
fd file descriptor index for writing the messages
ml the message list
m a pointer to a message prefix
t a pointer to an array for incrementing the number of the according message type

struct _message_list* Message_List_Shift struct _message_list ml,
char **  m,
msgtype_t *  t
 

take the first message from a message list

Parameters:
ml the message list
m a pointer to a char pointer to hand over the shifted message data
t a pointer to an array for incrementing the number of the according message type
Returns:
the pointer


Generated on Thu Jul 13 03:56:36 2006 for CKPMcc by  doxygen 1.4.4