21 lines
356 B
C
21 lines
356 B
C
#ifndef CREDS_PARSER_H
|
|
|
|
typedef struct
|
|
{
|
|
char * username;
|
|
char * password;
|
|
char * channel;
|
|
char * server;
|
|
int port;
|
|
} creds_t;
|
|
|
|
extern creds_t creds;
|
|
|
|
DECL char * slurp(const char * fn);
|
|
DECL int parse_pair(char const * buf, size_t const len);
|
|
DECL void parse_command(char * cmd);
|
|
DECL void clean_creds(void);
|
|
|
|
#define CREDS_PARSER_H
|
|
#endif
|