navit  0.5.3-trunk
messages.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_MESSAGES_H
21 #define NAVIT_MESSAGES_H
22 
23 struct messagelist;
24 
25 struct message {
26  struct message *next;
27  int id;
28  time_t time;
29  char *text;
30 };
31 
32 /* Prototypes */
33 struct attr;
34 
35 int message_new(struct messagelist *this_, const char *message);
36 int message_delete(struct messagelist *this_, int mid);
37 struct messagelist *messagelist_new(struct attr **attrs);
38 void messagelist_init(struct messagelist *this_);
39 struct message *message_get(struct messagelist *this_);
40 
41 #endif
int message_delete(struct messagelist *this_, int mid)
Definition: messages.c:50
struct message * message_get(struct messagelist *this_)
Definition: messages.c:145
void messagelist_init(struct messagelist *this_)
Definition: messages.c:137
int message_new(struct messagelist *this_, const char *message)
Definition: messages.c:36
struct messagelist * messagelist_new(struct attr **attrs)
Definition: messages.c:118
Definition: attr.h:157
Definition: messages.h:25
time_t time
Definition: messages.h:28
int id
Definition: messages.h:27
char * text
Definition: messages.h:29
struct message * next
Definition: messages.h:26
Definition: messages.c:27