Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 64 lines (55 sloc) 1.248 kb
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
1 #pragma once
2
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
3 /*
7cb81a2 start_buffer, catches messages produced before bufs initialised
ec429 authored
4 quIRC - simple terminal-based IRC client
3c98009 Nudge the (C)opyright message to '2010-11'
ec429 authored
5 Copyright (C) 2010-11 Edward Cree
7cb81a2 start_buffer, catches messages produced before bufs initialised
ec429 authored
6
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
7 See quirc.c for license information
8 config: rc file and option parsing
9 */
10
11 #include <stdio.h>
12 #include <stdbool.h>
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
13 #include <string.h>
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
14
15 typedef struct _chanlist
16 {
17 char *name;
18 char *key;
19 struct _chanlist *next;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
20 struct _name *igns;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
21 }
22 chanlist;
23
24 typedef struct _servlist
25 {
26 char *name;
27 char *portno;
28 char *nick;
b5829d6 PASS (--pass) and related stuff, also call termsize() at startup
ec429 authored
29 char *pass;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
30 bool join;
31 chanlist *chans;
32 struct _servlist *next;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
33 struct _name *igns;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
34 }
35 servlist;
36
a21b9dd Add /ignores in .quirc
Sound and Fury authored
37 #include "names.h"
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
38 #include "bits.h"
39 #include "colour.h"
40 #include "text.h"
41 #include "version.h"
7cb81a2 start_buffer, catches messages produced before bufs initialised
ec429 authored
42 #include "buffer.h"
62617ff Configurable keymapping
ec429 authored
43 #include "keymod.h"
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
44
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
45 // global settings & state
de4ae60 config: generate much of the config code from a concise descriptions fil...
ec429 authored
46 #include "config_globals.h"
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
47 bool autojoin;
b5829d6 PASS (--pass) and related stuff, also call termsize() at startup
ec429 authored
48 char *username, *fname, *nick, *pass, *portno;
44b847a If --uname then use it instead of username for default nick
ec429 authored
49 bool defnick;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
50 servlist *servs;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
51 name *igns;
ac2ac2c Backport fixes from openSUSE (pbleser)
ec429 authored
52 char *version;
62617ff Configurable keymapping
ec429 authored
53 int nkeys;
54 keymod *kmap;
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
55
62617ff Configurable keymapping
ec429 authored
56 int initkeys(void);
57 void loadkeys(FILE *);
de4ae60 config: generate much of the config code from a concise descriptions fil...
ec429 authored
58 int conf_check(void); // writes diagnostics to start-buffer
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
59 int def_config(void); // set these to their defaults
60 int rcread(FILE *rcfp); // read & parse the rc file.
61 signed int pargs(int argc, char *argv[]); // parse the cmdline args. If return is >=0, main should return it also
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
62 void freeservlist(servlist * serv);
63 void freechanlist(chanlist * chan);
Something went wrong with that request. Please try again.