ekg2  GIT master
Struktury danych | Definicje typów | Funkcje | Zmienne
Dokumentacja pliku msgqueue.h
#include <sys/types.h>
#include <time.h>
#include "dynstuff.h"
#include "protocol.h"
Wykres zależności załączania dla msgqueue.h:
Ten wykres pokazuje, które pliki bezpośrednio lub pośrednio załączają ten plik:

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

◆ msg_queue_t

typedef struct msg_queue msg_queue_t

Dokumentacja funkcji

◆ msg_queue_add()

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

◆ msg_queue_count_session()

int msg_queue_count_session ( const char *  uid)

◆ msg_queue_flush()

int msg_queue_flush ( const char *  session)

◆ msg_queue_read()

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.

◆ msg_queue_remove_seq()

int msg_queue_remove_seq ( const char *  seq)

◆ msg_queue_remove_uid()

int msg_queue_remove_uid ( const char *  uid)

◆ msg_queue_write()

int msg_queue_write ( )

◆ msgs_queue_destroy()

void msgs_queue_destroy ( )

Dokumentacja zmiennych

◆ msgs_queue

msg_queue_t* msgs_queue