ekg2
Struktury danych | Definicje typów | Funkcje | Zmienne

Dokumentacja pliku ekg/msgqueue.h

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

Idź do kodu źródłowego tego pliku.

Struktury danych

struct  msg_queue

Definicje typów

typedef struct msg_queue msg_queue_t

Funkcje

int msg_queue_add (const char *session, const char *rcpts, const char *message, const char *seq, msgclass_t mclass)
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 ()

Zmienne

msg_queue_tmsgs_queue

Dokumentacja definicji typów

typedef struct msg_queue msg_queue_t

Dokumentacja funkcji

int msg_queue_add ( const char *  session,
const char *  rcpts,
const char *  message,
const char *  seq,
msgclass_t  mclass 
)
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.

Do zrobienia:
return count of readed messages?
Do zrobienia:
code which handle errors is awful and it need rewriting.
Zwraca:
-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 ( )

Dokumentacja zmiennych

 All Struktury Danych Pliki Funkcje Zmienne Definicje typów Wyliczenia Wartości wyliczeń Definicje