wmail: fixed use-after-free.
[dockapps.git] / yawmppp / src / gtklog / loglist.h
blob62adf0dcae6b69e8dd247a34b9004980c27eb93b
2 #ifndef LOGLIST_H
3 #define LOGLIST_H
5 #include <gtk/gtk.h>
7 void create_loglist(void);
8 void load_log(void);
9 void prepend_log_entry(char *);
10 void free_log(void);
11 void update_list(void);
12 void make_resume(void);
13 void add_hourly(long s,long e);
14 void add_weekly(long s,long e);
16 gint applet_kill (GtkWidget * widget, GdkEvent * event, gpointer data);
17 void applet_destroy (GtkWidget * widget, gpointer data);
19 void time_menu(GtkMenuItem *gmi,gpointer data);
20 void user_menu(GtkMenuItem *gmi,gpointer data);
21 void isp_menu(GtkMenuItem *gmi,gpointer data);
22 int already_exists(char *s,GList *pt);
24 gint hgra_expose(GtkWidget *,GdkEventExpose *,gpointer);
25 gint hgra_configure(GtkWidget *,GdkEventConfigure *,gpointer);
26 gint wgra_expose(GtkWidget *,GdkEventExpose *,gpointer);
27 gint wgra_configure(GtkWidget *,GdkEventConfigure *,gpointer);
29 struct logentry {
30 time_t start;
31 time_t end;
32 int status; /* 0=ok 1=error 2=crash */
33 char longname[128];
34 char shortname[16];
35 char phone[32];
36 char user[32];
39 #endif