summaryrefslogtreecommitdiff
path: root/contrib/c-bindings/gf_lexing.h
diff options
context:
space:
mode:
authorjordi.saludes <jordi.saludes@upc.edu>2010-06-05 11:57:55 +0000
committerjordi.saludes <jordi.saludes@upc.edu>2010-06-05 11:57:55 +0000
commit7d9349271b4e46bc1fb4017c5a40689cdfd9188f (patch)
tree52d2b7525aa0af5892e46b119652880fa42c4ff0 /contrib/c-bindings/gf_lexing.h
parent4061674fae8f3d0592acc864631eafda5b613c8a (diff)
Added gf-lexing.* to c-bindings.
Diffstat (limited to 'contrib/c-bindings/gf_lexing.h')
-rw-r--r--contrib/c-bindings/gf_lexing.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/c-bindings/gf_lexing.h b/contrib/c-bindings/gf_lexing.h
new file mode 100644
index 000000000..262cff8f2
--- /dev/null
+++ b/contrib/c-bindings/gf_lexing.h
@@ -0,0 +1,26 @@
+/* GF C Bindings
+ Copyright (C) 2010 Kevin Kofler
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; if not, see <http://www.gnu.org/licenses/>.
+*/
+
+/* Function pointer type which applies a string operation to str, which is
+ assumed to be non-NULL.
+ The resulting string can be assumed to be non-NULL and must be freed using
+ free. */
+typedef char *(*GF_StringOp)(const char *str);
+
+/* Returns a GF_StringOp applying the operation op if available, otherwise
+ NULL. op is assumed to be non-NULL. The GF_StringOp MUST NOT be freed. */
+GF_StringOp gf_stringOp(const char *op); \ No newline at end of file