diff options
Diffstat (limited to 'ccss/ccss-function.h')
-rw-r--r-- | ccss/ccss-function.h | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/ccss/ccss-function.h b/ccss/ccss-function.h index c0e24d9..4945756 100644 --- a/ccss/ccss-function.h +++ b/ccss/ccss-function.h @@ -22,39 +22,11 @@ #ifndef CCSS_FUNCTION_H #define CCSS_FUNCTION_H -#include <ccss/ccss-block.h> #include <ccss/ccss-macros.h> CCSS_BEGIN_DECLS -/* Let's just forward declare this, so we don't have to pull in <glib.h>. */ -struct _GSList; - -/** - * ccss_function_f: - * @args: argument-list passed to the function. - * @user_data: user data associated to the function handler. - * - * Prototype for a custom `CSS function' handler. - * - * Returns: the function's result as a string. - **/ -typedef char * (*ccss_function_f) (struct _GSList const *args, - void *user_data); - -/** - * ccss_function_t: - * @name: identifier of the function, as used in CSS. - * @function: handler, see #ccss_function_f. - * @user_data: data to pass to the function handler. - * - * This datastructure represents one line in the libccss' consumers vtable. - **/ -typedef struct { - char const *name; - ccss_function_f function; - void *user_data; -} ccss_function_t; +typedef struct ccss_function_ ccss_function_t; CCSS_END_DECLS |