Add src/theme/xbm/parse.c

This commit is contained in:
Johan Malm 2020-06-23 07:17:07 +01:00
parent d80a7b518f
commit f86394a997
7 changed files with 125 additions and 13 deletions

View file

@ -16,11 +16,24 @@ struct token {
enum token_type type;
};
/**
* xbm_create_bitmap - parse xbm tokens and create pixmap
* @tokens: token vector
*/
void xbm_create_bitmap(struct token *tokens);
/**
* tokenize - tokenize xbm file
* @buffer: buffer containing xbm file
* returns vector of tokens
* return token vector
*/
struct token *tokenize(char *buffer);
struct token *xbm_tokenize(char *buffer);
/**
* xbm_read_file - read file into buffer (as it's easier to tokenize that way)
* @filename: file to be read
* return allocated memory
*/
char *xbm_read_file(const char *filename);
#endif /* XBM_H */