/home/dko/Projects/mobilec/src/fipa_acl.c File Reference

#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <strings.h>
#include "include/fipa_acl.h"
#include "dynstring.h"
#include "include/mc_error.h"
#include "include/macros.h"

Go to the source code of this file.

Defines

#define FREEMEM(x)   if (x != NULL) free(x)

Functions

fipa_acl_message_tfipa_acl_message_New (void)
int fipa_acl_message_Destroy (fipa_acl_message_t *message)
fipa_acl_message_tfipa_acl_message_Copy (fipa_acl_message_t *src)
fipa_message_string_tfipa_message_string_New (void)
int fipa_message_string_Destroy (fipa_message_string_t *message)
fipa_message_string_tfipa_message_string_Copy (fipa_message_string_t *src)
fipa_url_sequence_tfipa_url_sequence_New (void)
int fipa_url_sequence_Destroy (fipa_url_sequence_t *sequence)
fipa_url_sequence_tfipa_url_sequence_Copy (fipa_url_sequence_t *src)
fipa_agent_identifier_set_tfipa_agent_identifier_set_New (void)
int fipa_agent_identifier_set_Destroy (fipa_agent_identifier_set_t *idset)
fipa_agent_identifier_set_tfipa_agent_identifier_set_Copy (fipa_agent_identifier_set_t *src)
fipa_agent_identifier_tfipa_agent_identifier_New (void)
int fipa_agent_identifier_Destroy (fipa_agent_identifier_t *id)
fipa_agent_identifier_tfipa_agent_identifier_Copy (fipa_agent_identifier_t *src)
fipa_expression_tfipa_expression_New (void)
int fipa_expression_Destroy (fipa_expression_t *expr)
fipa_expression_tfipa_expression_Copy (fipa_expression_t *src)
fipa_word_tfipa_word_New (void)
int fipa_word_Destroy (fipa_word_t *word)
fipa_word_tfipa_word_Copy (fipa_word_t *src)
fipa_string_tfipa_string_New (void)
int fipa_string_Destroy (fipa_string_t *str)
fipa_string_tfipa_string_Copy (fipa_string_t *src)
fipa_DateTime_tfipa_DateTime_New (void)
int fipa_DateTime_Destroy (fipa_DateTime_t *dt)
fipa_DateTime_tfipa_DateTime_Copy (fipa_DateTime_t *src)
fipa_url_tfipa_url_New (void)
int fipa_url_Destroy (fipa_url_t *url)
fipa_url_tfipa_url_Copy (fipa_url_t *src)
fipa_number_tfipa_number_New (void)
int fipa_number_Destroy (fipa_number_t *number)
fipa_number_tfipa_number_Copy (fipa_number_t *src)
int fipa_acl_Parse (fipa_acl_message_p acl, fipa_message_string_p message)
int fipa_message_parameter_Parse (fipa_acl_message_p acl, fipa_message_string_p message)
int fipa_protocol_type_Parse (enum fipa_protocol_e *protocol, fipa_message_string_p message)
int fipa_message_type_Parse (enum fipa_performative_e *performative, fipa_message_string_p message)
int fipa_GetAtom (fipa_message_string_p message, char expected_atom)
int fipa_word_Parse (fipa_word_t **word, fipa_message_string_p message)
int fipa_CheckNextToken (const fipa_message_string_p message, const char *token)
int fipa_expression_Parse (fipa_expression_t **expression, fipa_message_string_p message)
int fipa_GetNextWord (char **word, const fipa_message_string_p message)
int fipa_GetWholeToken (char **word, fipa_message_string_p message)
int fipa_datetime_Parse (fipa_DateTime_p *datetime, fipa_message_string_p message)
int fipa_string_Parse (fipa_string_p *fipa_string, fipa_message_string_p message)
int fipa_agent_identifier_Parse (fipa_agent_identifier_p *aid, fipa_message_string_p message)
int fipa_url_sequence_Parse (fipa_url_sequence_p *urls, fipa_message_string_p message)
int fipa_url_Parse (fipa_url_p *url, fipa_message_string_p message)
int fipa_agent_identifier_set_Parse (fipa_agent_identifier_set_p *agent_ids, fipa_message_string_p message)
int fipa_acl_Compose (dynstring_t **msg, fipa_acl_message_t *acl)
int fipa_protocol_Compose (dynstring_t *msg, enum fipa_protocol_e protocol)
int fipa_performative_Compose (dynstring_t *msg, enum fipa_performative_e performative)
int fipa_url_sequence_Compose (dynstring_t *msg, fipa_url_sequence_t *urls)
int fipa_agent_identifier_set_Compose (dynstring_t *msg, fipa_agent_identifier_set_t *ids)
int fipa_agent_identifier_Compose (dynstring_t *msg, fipa_agent_identifier_t *id)
int fipa_expression_Compose (dynstring_t *msg, fipa_expression_t *expr)
int fipa_word_Compose (dynstring_t *msg, fipa_word_t *word)
int fipa_string_Compose (dynstring_t *msg, fipa_string_t *string)
int fipa_DateTime_Compose (dynstring_t *msg, fipa_DateTime_t *date)
int fipa_url_Compose (dynstring_t *msg, fipa_url_t *url)
int fipa_number_Compose (dynstring_t *msg, fipa_number_t *number)
struct fipa_acl_message_sfipa_Reply (struct fipa_acl_message_s *acl)

Define Documentation

#define FREEMEM (  )     if (x != NULL) free(x)

Definition at line 53 of file fipa_acl.c.

Referenced by fipa_expression_Destroy().


Function Documentation

int fipa_acl_Compose ( dynstring_t **  msg,
fipa_acl_message_t acl 
)
fipa_acl_message_t* fipa_acl_message_Copy ( fipa_acl_message_t src  ) 
int fipa_acl_message_Destroy ( fipa_acl_message_t message  ) 
fipa_acl_message_t* fipa_acl_message_New ( void   ) 

Definition at line 57 of file fipa_acl.c.

Referenced by acc_connection_Thread(), fipa_acl_message_Copy(), fipa_Reply(), and MC_AclNew().

int fipa_acl_Parse ( fipa_acl_message_p  acl,
fipa_message_string_p  message 
)
int fipa_agent_identifier_Compose ( dynstring_t msg,
fipa_agent_identifier_t id 
)
fipa_agent_identifier_t* fipa_agent_identifier_Copy ( fipa_agent_identifier_t src  ) 
int fipa_agent_identifier_Destroy ( fipa_agent_identifier_t id  ) 
fipa_agent_identifier_t* fipa_agent_identifier_New ( void   ) 
int fipa_agent_identifier_Parse ( fipa_agent_identifier_p aid,
fipa_message_string_p  message 
)
int fipa_agent_identifier_set_Compose ( dynstring_t msg,
fipa_agent_identifier_set_t ids 
)
fipa_agent_identifier_set_t* fipa_agent_identifier_set_Copy ( fipa_agent_identifier_set_t src  ) 
int fipa_agent_identifier_set_Destroy ( fipa_agent_identifier_set_t idset  ) 
fipa_agent_identifier_set_t* fipa_agent_identifier_set_New ( void   ) 
int fipa_agent_identifier_set_Parse ( fipa_agent_identifier_set_p agent_ids,
fipa_message_string_p  message 
)
int fipa_CheckNextToken ( const fipa_message_string_p  message,
const char *  token 
)

Definition at line 695 of file fipa_acl.c.

References fipa_message_string_s::parse.

Referenced by fipa_expression_Parse().

int fipa_DateTime_Compose ( dynstring_t msg,
fipa_DateTime_t date 
)
fipa_DateTime_t* fipa_DateTime_Copy ( fipa_DateTime_t src  ) 
int fipa_DateTime_Destroy ( fipa_DateTime_t dt  ) 
fipa_DateTime_t* fipa_DateTime_New ( void   ) 

Definition at line 384 of file fipa_acl.c.

Referenced by fipa_DateTime_Copy().

int fipa_datetime_Parse ( fipa_DateTime_p datetime,
fipa_message_string_p  message 
)
int fipa_expression_Compose ( dynstring_t msg,
fipa_expression_t expr 
)
fipa_expression_t* fipa_expression_Copy ( fipa_expression_t src  ) 
int fipa_expression_Destroy ( fipa_expression_t expr  ) 
fipa_expression_t* fipa_expression_New ( void   ) 

Definition at line 248 of file fipa_acl.c.

Referenced by fipa_expression_Copy(), and MC_AclSetConversationID().

int fipa_expression_Parse ( fipa_expression_t **  expression,
fipa_message_string_p  message 
)
int fipa_GetAtom ( fipa_message_string_p  message,
char  expected_atom 
)
int fipa_GetNextWord ( char **  word,
const fipa_message_string_p  message 
)

Definition at line 765 of file fipa_acl.c.

References ERR, MC_SUCCESS, and fipa_message_string_s::parse.

int fipa_GetWholeToken ( char **  word,
fipa_message_string_p  message 
)

Definition at line 813 of file fipa_acl.c.

References MC_SUCCESS, and fipa_message_string_s::parse.

Referenced by fipa_datetime_Parse().

int fipa_message_parameter_Parse ( fipa_acl_message_p  acl,
fipa_message_string_p  message 
)
fipa_message_string_t* fipa_message_string_Copy ( fipa_message_string_t src  ) 

Definition at line 128 of file fipa_acl.c.

References fipa_message_string_s::message, fipa_message_string_s::parse, and strdup.

int fipa_message_string_Destroy ( fipa_message_string_t message  ) 

Definition at line 118 of file fipa_acl.c.

References fipa_message_string_s::message.

Referenced by acc_connection_Thread().

fipa_message_string_t* fipa_message_string_New ( void   ) 

Definition at line 110 of file fipa_acl.c.

Referenced by acc_connection_Thread().

int fipa_message_type_Parse ( enum fipa_performative_e performative,
fipa_message_string_p  message 
)
int fipa_number_Compose ( dynstring_t msg,
fipa_number_t number 
)

Definition at line 1548 of file fipa_acl.c.

References dynstring_Append(), and fipa_number_s::str.

Referenced by fipa_expression_Compose().

fipa_number_t* fipa_number_Copy ( fipa_number_t src  ) 

Definition at line 455 of file fipa_acl.c.

References fipa_number_New(), fipa_number_s::str, and strdup.

Referenced by fipa_expression_Copy().

int fipa_number_Destroy ( fipa_number_t number  ) 

Definition at line 445 of file fipa_acl.c.

References fipa_number_s::str.

Referenced by fipa_expression_Destroy().

fipa_number_t* fipa_number_New ( void   ) 

Definition at line 437 of file fipa_acl.c.

Referenced by fipa_number_Copy().

int fipa_performative_Compose ( dynstring_t msg,
enum fipa_performative_e  performative 
)
int fipa_protocol_Compose ( dynstring_t msg,
enum fipa_protocol_e  protocol 
)
int fipa_protocol_type_Parse ( enum fipa_protocol_e protocol,
fipa_message_string_p  message 
)
struct fipa_acl_message_s* fipa_Reply ( struct fipa_acl_message_s acl  )  [read]
int fipa_string_Compose ( dynstring_t msg,
fipa_string_t string 
)

Definition at line 1511 of file fipa_acl.c.

References fipa_string_s::content, and dynstring_Append().

Referenced by fipa_acl_Compose(), and fipa_expression_Compose().

fipa_string_t* fipa_string_Copy ( fipa_string_t src  ) 

Definition at line 374 of file fipa_acl.c.

References fipa_string_s::content, fipa_string_New(), and strdup.

Referenced by fipa_acl_message_Copy(), and fipa_expression_Copy().

int fipa_string_Destroy ( fipa_string_t str  ) 
fipa_string_t* fipa_string_New ( void   ) 

Definition at line 356 of file fipa_acl.c.

Referenced by fipa_string_Copy(), MC_AclSetContent(), and MC_AclSetConversationID().

int fipa_string_Parse ( fipa_string_p fipa_string,
fipa_message_string_p  message 
)
int fipa_url_Compose ( dynstring_t msg,
fipa_url_t url 
)

Definition at line 1540 of file fipa_acl.c.

References dynstring_Append(), and fipa_url_s::str.

Referenced by fipa_url_sequence_Compose().

fipa_url_t* fipa_url_Copy ( fipa_url_t src  ) 

Definition at line 427 of file fipa_acl.c.

References fipa_url_New(), fipa_url_s::str, and strdup.

Referenced by fipa_acl_envelope_Received_Copy(), and fipa_url_sequence_Copy().

int fipa_url_Destroy ( fipa_url_t url  ) 

Definition at line 417 of file fipa_acl.c.

References fipa_url_s::str.

Referenced by fipa_acl_envelope_Received_Destroy(), and fipa_url_sequence_Destroy().

fipa_url_t* fipa_url_New ( void   ) 
int fipa_url_Parse ( fipa_url_p url,
fipa_message_string_p  message 
)

Definition at line 1172 of file fipa_acl.c.

References fipa_word_s::content, fipa_word_Destroy(), fipa_word_Parse(), and strdup.

Referenced by fipa_url_sequence_Parse().

int fipa_url_sequence_Compose ( dynstring_t msg,
fipa_url_sequence_t urls 
)
fipa_url_sequence_t* fipa_url_sequence_Copy ( fipa_url_sequence_t src  ) 
int fipa_url_sequence_Destroy ( fipa_url_sequence_t sequence  ) 
fipa_url_sequence_t* fipa_url_sequence_New ( void   ) 
int fipa_url_sequence_Parse ( fipa_url_sequence_p urls,
fipa_message_string_p  message 
)
int fipa_word_Compose ( dynstring_t msg,
fipa_word_t word 
)

Definition at line 1503 of file fipa_acl.c.

References fipa_word_s::content, and dynstring_Append().

Referenced by fipa_expression_Compose().

fipa_word_t* fipa_word_Copy ( fipa_word_t src  ) 

Definition at line 346 of file fipa_acl.c.

References fipa_word_s::content, fipa_word_New(), and strdup.

Referenced by fipa_expression_Copy().

int fipa_word_Destroy ( fipa_word_t word  ) 
fipa_word_t* fipa_word_New ( void   ) 

Definition at line 328 of file fipa_acl.c.

Referenced by fipa_word_Copy().

int fipa_word_Parse ( fipa_word_t **  word,
fipa_message_string_p  message 
)
Generated on Tue Dec 28 15:15:27 2010 for Mobile-C by  doxygen 1.6.3