Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 59 lines (51 sloc) 1.208 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
#pragma once

/*
quIRC - simple terminal-based IRC client
Copyright (C) 2010-11 Edward Cree

See quirc.c for license information
config: rc file and option parsing
*/

#include <stdio.h>
#include <stdbool.h>
#include <string.h>

typedef struct _chanlist
{
char *name;
char *key;
struct _chanlist *next;
struct _name *igns;
}
chanlist;

typedef struct _servlist
{
char *name;
char *portno;
char *nick;
bool join;
chanlist *chans;
struct _servlist *next;
struct _name *igns;
}
servlist;

#include "names.h"
#include "bits.h"
#include "colour.h"
#include "text.h"
#include "version.h"
#include "buffer.h"

// global settings & state
#include "config_globals.h"
bool autojoin;
char *username, *fname, *nick, *portno;
servlist *servs;
name *igns;
#ifdef HAVE_DEBUG
unsigned int debug;
#endif // HAVE_DEBUG
char version[16+strlen(VERSION_TXT)];

int conf_check(void); // writes diagnostics to start-buffer
int def_config(void); // set these to their defaults
int rcread(FILE *rcfp); // read & parse the rc file.
signed int pargs(int argc, char *argv[]); // parse the cmdline args. If return is >=0, main should return it also
void freeservlist(servlist * serv);
void freechanlist(chanlist * chan);
Something went wrong with that request. Please try again.