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
2023-08-03 15:06:42 +03:00

29 lines
606 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);
#define CREDS_PARSER_H
#endif