[evolution-data-server] Define EFreeFormExpSymbol::build_sexp as a full type, to make Vala happy



commit c78b442f5aba76367ae801775005b379545ad6fe
Author: Milan Crha <mcrha redhat com>
Date:   Tue Dec 9 14:32:02 2014 +0100

    Define EFreeFormExpSymbol::build_sexp as a full type, to make Vala happy
    
    The Vala compiler doesn't like inline function definitions, without
    a defined type, thus workaround it by providing a typedef for
    the function prototype inside the structure.

 libedataserver/e-free-form-exp.h |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libedataserver/e-free-form-exp.h b/libedataserver/e-free-form-exp.h
index e34358c..2cd9bde 100644
--- a/libedataserver/e-free-form-exp.h
+++ b/libedataserver/e-free-form-exp.h
@@ -28,12 +28,14 @@
 
 G_BEGIN_DECLS
 
+typedef gchar * (*EFreeFormExpBuildSexpFunc)   (const gchar *word,
+                                                const gchar *options,
+                                                const gchar *hint);
+
 typedef struct _EFreeFormExpSymbol {
        const gchar *names; /* names (alternative separated by a colon (':')); use an empty string for a 
default sexp builder */
        const gchar *hint; /* passed into build_sexp */
-       gchar * (*build_sexp)(const gchar *word,
-                             const gchar *options,
-                             const gchar *hint);
+       EFreeFormExpBuildSexpFunc build_sexp;
 } EFreeFormExpSymbol;
 
 gchar *                e_free_form_exp_to_sexp         (const gchar *free_form_exp,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]