~ubuntu-branches/ubuntu/quantal/irssi-plugin-xmpp/quantal

« back to all changes in this revision

Viewing changes to src/core/xep/tool_datalist.h

  • Committer: Bazaar Package Importer
  • Author(s): David Ammouial
  • Date: 2009-05-12 12:14:44 UTC
  • mfrom: (1.1.3 upstream) (2.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20090512121444-5jeho5h3zsy4oij7
Tags: 0.13+cvs20090406-1
* New CVS snapshot, built against irssi-dev 0.8.13:
  - New features and bugfixes.
  - Fix segfault when successfully identified (Closes: #521227).
  - Fix build error (Closes: #527697)
* Depend on irssi >=0.8.13, build-depend on irssi-dev >=0.8.13.
* Bump Standards-Version to 3.8.1 (no changes needed).
* Add INTERNAL to documentation files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: tool_datalist.h,v 1.1 2008/10/29 07:14:43 cdidier Exp $ */
 
2
 
 
3
#ifndef __TOOL_DATALIST_H
 
4
#define __TOOL_DATALIST_H
 
5
 
 
6
#include "xmpp-servers.h"
 
7
 
 
8
typedef struct datalist_rec {
 
9
        XMPP_SERVER_REC *server;
 
10
        char            *jid;
 
11
        void            *data;
 
12
} DATALIST_REC;
 
13
 
 
14
typedef struct datalist_first {
 
15
        GSList *list;
 
16
        void (*freedata_func)(DATALIST_REC *);
 
17
} DATALIST;
 
18
 
 
19
__BEGIN_DECLS
 
20
DATALIST        *datalist_new(void (*)(DATALIST_REC *));
 
21
void             datalist_destroy(DATALIST *);
 
22
DATALIST_REC    *datalist_find(DATALIST *, XMPP_SERVER_REC *, const char *);
 
23
DATALIST_REC    *datalist_add(DATALIST *, XMPP_SERVER_REC *, const char *,
 
24
                     void *);
 
25
void             datalist_free(DATALIST *, DATALIST_REC *);
 
26
void             datalist_remove(DATALIST *, XMPP_SERVER_REC *, const char *);
 
27
void             datalist_cleanup(DATALIST *, XMPP_SERVER_REC *);
 
28
__END_DECLS
 
29
 
 
30
#endif