From 7d9349271b4e46bc1fb4017c5a40689cdfd9188f Mon Sep 17 00:00:00 2001 From: "jordi.saludes" Date: Sat, 5 Jun 2010 11:57:55 +0000 Subject: Added gf-lexing.* to c-bindings. --- contrib/c-bindings/gf_lexing.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 contrib/c-bindings/gf_lexing.h (limited to 'contrib/c-bindings/gf_lexing.h') 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 . +*/ + +/* 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 -- cgit v1.2.3