33 lines
722 B
C
33 lines
722 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 int parse_admin_list(char const * admin_list_file);
|
|
DECL int is_admin(char const * user);
|
|
DECL void clean_admin_list();
|
|
|
|
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);
|
|
DECL void random_assign(const char * const sql);
|
|
DECL void purge_assignments(const char * const who);
|
|
|
|
extern int f;
|
|
|
|
#define CREDS_PARSER_H
|
|
#endif
|