mirror of
https://github.com/labwc/labwc.git
synced 2025-11-05 13:29:58 -05:00
Add src/theme/xbm/parse.c
This commit is contained in:
parent
d80a7b518f
commit
f86394a997
7 changed files with 125 additions and 13 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue