src/theme/xbm/parse.c: generate cairo_surface

This commit is contained in:
Johan Malm 2020-06-26 21:52:38 +01:00
parent f86394a997
commit 40e862f3ac
3 changed files with 60 additions and 6 deletions

View file

@ -1,6 +1,8 @@
#ifndef XBM_H
#define XBM_H
#include <cairo.h>
enum token_type {
TOKEN_NONE = 0,
TOKEN_IDENT,
@ -20,7 +22,7 @@ struct token {
* xbm_create_bitmap - parse xbm tokens and create pixmap
* @tokens: token vector
*/
void xbm_create_bitmap(struct token *tokens);
cairo_surface_t *xbm_create_bitmap(struct token *tokens);
/**
* tokenize - tokenize xbm file