This repository has been archived on 2024-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
probotic/include/parse.h

31 lines
707 B
C
Raw Normal View History

2023-08-02 10:44:10 -04:00
#ifndef CREDS_PARSER_H
typedef struct
{
char * username;
char * password;
2023-08-03 02:16:39 -04:00
char * channel;
char * server;
int port;
2023-08-02 10:44:10 -04:00
} creds_t;
2023-08-03 02:16:39 -04:00
extern creds_t creds;
DECL void parse_command(char * cmd);
2023-08-03 02:16:39 -04:00
DECL int parse_creds(char const * creds_file);
DECL void clean_creds(void);
2023-08-02 10:44:10 -04:00
2023-08-03 08:06:42 -04:00
DECL int parse_admin_list(char const * admin_list_file);
DECL int is_admin(char const * user);
2023-08-03 11:42:07 -04:00
DECL void clean_admin_list();
2023-08-03 08:06:42 -04:00
2023-08-03 06:43:43 -04:00
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);
2023-08-03 11:42:07 -04:00
DECL void random_assign(const char * const sql);
DECL void purge_assignments(const char * const who);
2023-08-03 06:43:43 -04:00
2023-08-02 11:09:34 -04:00
#define CREDS_PARSER_H
#endif