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

22 lines
397 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;
2023-08-03 05:15:20 -04:00
DECL char * slurp(const char * fn);
2023-08-03 05:29:11 -04:00
DECL int parse_pair(char const * buf, size_t const len);
DECL void parse_command(char * cmd);
DECL void creds_free_password(void);
DECL void creds_free_rest(void);
2023-08-02 10:44:10 -04:00
2023-08-02 11:09:34 -04:00
#define CREDS_PARSER_H
#endif