25 lines
477 B
C
25 lines
477 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);
|
|
|
|
DECL char * remind(char * who);
|
|
DECL void set_repo(const char * const who, const char * const link);
|
|
DECL char * dump(void);
|
|
DECL char * raw(const char * const sql);
|
|
|
|
#define CREDS_PARSER_H
|
|
#endif
|