~ubuntu-branches/ubuntu/maverick/xchat/maverick

« back to all changes in this revision

Viewing changes to .pc/45_save_ignore.patch/src/common/cfgfiles.h

  • Committer: Bazaar Package Importer
  • Author(s): Lorenzo De Liso
  • Date: 2010-06-21 22:47:10 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100621224710-9t1iyiglri330pss
Tags: 2.8.8-1ubuntu1
* Merge from debian unstable (LP: #597042), remaining changes:
  - debian/patches:
    + series: Refreshed.
    + 01_serverlist.patch: Numerous changes to default serverlist.
    + 02_ubuntu_default_server.patch: select "Ubuntu servers" by default.
    + 37_lpi.patch: Add launchpad integration.
    + 38_autoconf.patch: Autoconf modifications for launchpad integration.
    + 45_brand_ctcp_version.patch: Add Ubuntu brand to CTCP version response.
    + 70_notification_strings_shorten.patch: Shorten notification strings.
  - debian/control:
    + Build-depend on libgtk2.0-dev (>= 2.10.0).
    + Build-depend on liblaunchpad-integration-dev.
    + Remove conflict/replaces on xchat-gnome.
    + Updated Maintainer field to match Ubuntu Developers.
  - debian/rules:
    + Make build independent of the python version.
  - debian/patches/45_ctcp_version_less_information.dpatch: 
    + Renamed to debian/patches/45_brand_ctcp_version.patch
    + Added short description.
* Converted all patches to quilt, as in debian quilt has been
  adopted, all old dpatch patches have been renamed with the 
  *.patch extension.
* Dropped changes:
  - 71_notification_icon_change.patch: can't be applied

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* cfgfiles.h */
 
2
 
 
3
#ifndef XCHAT_CFGFILES_H
 
4
#define XCHAT_CFGFILES_H
 
5
 
 
6
#include "xchat.h"
 
7
 
 
8
extern char *xdir_fs;
 
9
extern char *xdir_utf;
 
10
 
 
11
char *cfg_get_str (char *cfg, char *var, char *dest, int dest_len);
 
12
int cfg_get_bool (char *var);
 
13
int cfg_get_int_with_result (char *cfg, char *var, int *result);
 
14
int cfg_get_int (char *cfg, char *var);
 
15
int cfg_put_int (int fh, int value, char *var);
 
16
int cfg_get_color (char *cfg, char *var, int *r, int *g, int *b);
 
17
int cfg_put_color (int fh, int r, int g, int b, char *var);
 
18
char *get_xdir_fs (void);
 
19
char *get_xdir_utf8 (void);
 
20
void load_config (void);
 
21
int save_config (void);
 
22
void list_free (GSList ** list);
 
23
void list_loadconf (char *file, GSList ** list, char *defaultconf);
 
24
int list_delentry (GSList ** list, char *name);
 
25
void list_addentry (GSList ** list, char *cmd, char *name);
 
26
int cmd_set (session *sess, char *tbuf, char *word[], char *word_eol[]);
 
27
int xchat_open_file (char *file, int flags, int mode, int xof_flags);
 
28
FILE *xchat_fopen_file (const char *file, const char *mode, int xof_flags);
 
29
#define XOF_DOMODE 1
 
30
#define XOF_FULLPATH 2
 
31
 
 
32
#define STRUCT_OFFSET_STR(type,field) \
 
33
( (unsigned int) (((char *) (&(((type *) NULL)->field)))- ((char *) NULL)) )
 
34
 
 
35
#define STRUCT_OFFSET_INT(type,field) \
 
36
( (unsigned int) (((int *) (&(((type *) NULL)->field)))- ((int *) NULL)) )
 
37
 
 
38
#define P_OFFSET(field) STRUCT_OFFSET_STR(struct xchatprefs, field),sizeof(prefs.field)
 
39
#define P_OFFSETNL(field) STRUCT_OFFSET_STR(struct xchatprefs, field)
 
40
#define P_OFFINT(field) STRUCT_OFFSET_INT(struct xchatprefs, field),0
 
41
#define P_OFFINTNL(field) STRUCT_OFFSET_INT(struct xchatprefs, field)
 
42
 
 
43
struct prefs
 
44
{
 
45
        char *name;
 
46
        unsigned short offset;
 
47
        unsigned short len;
 
48
        unsigned short type;
 
49
};
 
50
 
 
51
#define TYPE_STR 0
 
52
#define TYPE_INT 1
 
53
#define TYPE_BOOL 2
 
54
 
 
55
#endif