20 lines
310 B
C
20 lines
310 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 void parse_command(char * cmd);
|
|
DECL int parse_creds(char const * creds_file);
|
|
DECL void clean_creds(void);
|
|
|
|
#define CREDS_PARSER_H
|
|
#endif
|