aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2014-12-26 21:55:56 +0000
committerThomas White <taw@bitwiz.org.uk>2014-12-26 21:55:56 +0000
commit0857332781ab119e075c6e5bf1feb25bd5d032fa (patch)
tree65ba1cb3d039b1de99b195a959ab08f5655d0ba1
parent6ba97ba49e60fb3c2a7586f149891bc8609abf1f (diff)
Move SCCallbackFunc definition
-rw-r--r--src/sc_interp.c2
-rw-r--r--src/sc_interp.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c
index 40ab5ea..7799971 100644
--- a/src/sc_interp.c
+++ b/src/sc_interp.c
@@ -79,8 +79,6 @@ struct _scinterp
SCCallbackList *cbl;
};
-typedef cairo_surface_t *(*SCCallbackFunc)(SCBlock *bl, void *);
-
struct _sccallbacklist
{
int n_callbacks;
diff --git a/src/sc_interp.h b/src/sc_interp.h
index 017f9ea..c84942f 100644
--- a/src/sc_interp.h
+++ b/src/sc_interp.h
@@ -32,6 +32,7 @@
struct presentation;
typedef struct _scinterp SCInterpreter;
typedef struct _sccallbacklist SCCallbackList;
+typedef cairo_surface_t *(*SCCallbackFunc)(SCBlock *bl, void *);
extern SCInterpreter *sc_interp_new(PangoContext *pc, struct frame *top);
extern void sc_interp_destroy(SCInterpreter *scin);
@@ -51,7 +52,7 @@ extern void add_macro(SCInterpreter *scin, const char *mname,
extern SCCallbackList *sc_callback_list_new();
extern void sc_callback_list_free(SCCallbackList *cbl);
extern void sc_callback_list_add_callback(SCCallbackList *cbl, const char *name,
- cairo_surface_t *(*func)(SCBlock *bl, void *p));
+ SCCallbackFunc func);
extern void sc_interp_set_callbacks(SCInterpreter *scin, SCCallbackList *cbl);
/* Get the current state of the interpreter */