annotate mcabber/mcabber/histolog.h @ 2225:dc3b3ac1ba76

Free the buffdata structures when buffers are closed Free the buffdata strcutures when buffers are closed and there are no more users (these structures can be shared if the "symlink" shared history is used).
author Mikael Berthe <mikael@lilotux.net>
date Sat, 07 Nov 2015 12:21:12 +0100
parents e6d355e50d7a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1598
diff changeset
1 #ifndef __MCABBER_HISTOLOG_H__
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1598
diff changeset
2 #define __MCABBER_HISTOLOG_H__ 1
110
3d41aca3d878 [/trunk] Changeset 124 by mikael
mikael
parents:
diff changeset
3
3d41aca3d878 [/trunk] Changeset 124 by mikael
mikael
parents:
diff changeset
4 #include <glib.h>
3d41aca3d878 [/trunk] Changeset 124 by mikael
mikael
parents:
diff changeset
5
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1598
diff changeset
6 #include <mcabber/xmpp.h>
113
8ac67e951eab [/trunk] Changeset 127 by mikael
mikael
parents: 110
diff changeset
7
281
f562b9af2de7 Add "const" specifier in prototypes
Mikael Berthe <mikael@lilotux.net>
parents: 221
diff changeset
8 void hlog_enable(guint enable, const char *root_dir, guint loadfile);
1155
3b9bbf6c4c93 Added hlog_get_log_jid(): returns the value of a symlinked history file or NULL if it isn't symlinked
Frank Zschockelt
parents: 1058
diff changeset
9 char *hlog_get_log_jid(const char *bjid);
1058
c0d44a9a99bc Code cleanup
Mikael Berthe <mikael@lilotux.net>
parents: 580
diff changeset
10 void hlog_read_history(const char *bjid, GList **p_buddyhbuf, guint width);
1413
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1155
diff changeset
11 void hlog_write_message(const char *bjid, time_t timestamp, int sent,
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1155
diff changeset
12 const char *msg);
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1155
diff changeset
13 void hlog_write_status(const char *bjid, time_t timestamp,
f89844a0448a Remove useless inlines
Mikael Berthe <mikael@lilotux.net>
parents: 1155
diff changeset
14 enum imstatus status, const char *status_msg);
1437
071c8170b7de Add option 'statefile' to keep track of unread messages across restarts
Mikael Berthe <mikael@lilotux.net>
parents: 1413
diff changeset
15 void hlog_save_state(void);
071c8170b7de Add option 'statefile' to keep track of unread messages across restarts
Mikael Berthe <mikael@lilotux.net>
parents: 1413
diff changeset
16 void hlog_load_state(void);
110
3d41aca3d878 [/trunk] Changeset 124 by mikael
mikael
parents:
diff changeset
17
1668
41c26b7d2890 Install mcabber headers
Myhailo Danylenko <isbear@ukrpost.net>
parents: 1598
diff changeset
18 #endif /* __MCABBER_HISTOLOG_H__ */
110
3d41aca3d878 [/trunk] Changeset 124 by mikael
mikael
parents:
diff changeset
19
1811
e6d355e50d7a Update Vim modelines
Mikael Berthe <mikael@lilotux.net>
parents: 1668
diff changeset
20 /* vim: set expandtab cindent cinoptions=>2\:2(0 sw=2 ts=2: For Vim users... */