ekg/msgqueue.h File Reference

#include <sys/types.h>
#include <time.h>
#include "dynstuff.h"
#include "protocol.h"

Go to the source code of this file.

Data Structures

struct  msg_queue

Typedefs

typedef msg_queue msg_queue_t

Functions

int msg_queue_add (const char *session, const char *rcpts, const char *message, const char *seq, msgclass_t class)
void msgs_queue_destroy ()
int msg_queue_count_session (const char *uid)
int msg_queue_remove_uid (const char *uid)
int msg_queue_remove_seq (const char *seq)
int msg_queue_flush (const char *session)
int msg_queue_read ()
int msg_queue_write ()

Variables

msg_queue_tmsgs_queue


Typedef Documentation

typedef struct msg_queue msg_queue_t


Function Documentation

int msg_queue_add ( const char *  session,
const char *  rcpts,
const char *  message,
const char *  seq,
msgclass_t  class 
)

int msg_queue_count_session ( const char *  uid  ) 

int msg_queue_flush ( const char *  session  ) 

int msg_queue_read (  ) 

msg_queue_read()

Read msgqueue of not sended messages.
msgqueue is subdir ("queue") in ekg2 config directory.

Todo:
return count of readed messages?
Todo:
code which handle errors is awful and it need rewriting.
Returns:
-1 if fail to open msgqueue directory
0 on success.

int msg_queue_remove_seq ( const char *  seq  ) 

int msg_queue_remove_uid ( const char *  uid  ) 

int msg_queue_write (  ) 

void msgs_queue_destroy (  ) 


Variable Documentation

msg_queue_t* msgs_queue


Generated on Sat Nov 22 22:30:43 2008 for ekg2 by  doxygen 1.5.1