Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 65 lines (54 sloc) 1.261 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
4e3364b @ec429 Nudge copyright year to 2013
authored
5 Copyright (C) 2010-13 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
552a329 @ec429 Use github address in CTCP SOURCE response (and refactor with fname)
authored
15 #define CLIENT_SOURCE "http://github.com/ec429/quIRC"
16
977e366 Configure logging in rc file with ">log $type $file" lines
ec429 authored
17 #include "types.h"
18
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
19 typedef struct _chanlist
20 {
21 char *name;
22 char *key;
977e366 Configure logging in rc file with ">log $type $file" lines
ec429 authored
23 FILE *logf;
24 logtype logt;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
25 struct _chanlist *next;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
26 struct _name *igns;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
27 }
28 chanlist;
29
30 typedef struct _servlist
31 {
32 char *name;
33 char *portno;
34 char *nick;
b5829d6 PASS (--pass) and related stuff, also call termsize() at startup
ec429 authored
35 char *pass;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
36 bool join;
37 chanlist *chans;
38 struct _servlist *next;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
39 struct _name *igns;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
40 }
41 servlist;
42
a21b9dd Add /ignores in .quirc
Sound and Fury authored
43 #include "names.h"
62617ff Configurable keymapping
ec429 authored
44 #include "keymod.h"
fcf9495 Refactored .quirc and cmdline parsing; other refactoring
Sound and Fury authored
45
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
46 // global settings & state
de4ae60 config: generate much of the config code from a concise descriptions fil...
ec429 authored
47 #include "config_globals.h"
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
48 bool autojoin;
b5829d6 PASS (--pass) and related stuff, also call termsize() at startup
ec429 authored
49 char *username, *fname, *nick, *pass, *portno;
44b847a If --uname then use it instead of username for default nick
ec429 authored
50 bool defnick;
e515989 Allow multiple automatic connects and joins in .quirc
Sound and Fury authored
51 servlist *servs;
a21b9dd Add /ignores in .quirc
Sound and Fury authored
52 name *igns;
ac2ac2c Backport fixes from openSUSE (pbleser)
ec429 authored
53 char *version;
f146cd2 @ec429 cleanup: fix some memory leaks. There's still something in getaddrinfo_...
authored
54 unsigned int nkeys;
62617ff Configurable keymapping
ec429 authored
55 keymod *kmap;
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
56
62617ff Configurable keymapping
ec429 authored
57 int initkeys(void);
58 void loadkeys(FILE *);
de4ae60 config: generate much of the config code from a concise descriptions fil...
ec429 authored
59 int conf_check(void); // writes diagnostics to start-buffer
29252b6 More refactoring; chopping up quirc.c. '#pragma once'-ing headers
Sound and Fury authored
60 int def_config(void); // set these to their defaults
61 int rcread(FILE *rcfp); // read & parse the rc file.
62 signed int pargs(int argc, char *argv[]); // parse the cmdline args. If return is >=0, main should return it also
977e366 Configure logging in rc file with ">log $type $file" lines
ec429 authored
63 void freeservlist(servlist *serv);
64 void freechanlist(chanlist *chan);
Something went wrong with that request. Please try again.