summaryrefslogtreecommitdiff
path: root/src/gallery-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallery-utils.h')
-rw-r--r--src/gallery-utils.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/gallery-utils.h b/src/gallery-utils.h
index 123879b..d9c1d8a 100644
--- a/src/gallery-utils.h
+++ b/src/gallery-utils.h
@@ -15,6 +15,11 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
+
+#ifdef __cplusplus
+ extern "C" {
+#endif
+
#include <glib.h>
#include <string.h>
@@ -22,7 +27,6 @@
#define IS_EQUAL_SIGN(ch) ((ch) == '=')
#define GET_EXT(s) strrchr (s, '.')
-
/*
* str_replace: replace substring 'search' with a 'replace' string
* - multiple occurences of the string are replaced
@@ -63,3 +67,13 @@ int count_dir_levels (const char *path);
* extract_file_ext: returns pointer to filename extension
*/
const char *extract_file_ext (const char *filename);
+
+/*
+ * log_error: prints an error and increments stats
+ */
+void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
+
+
+#ifdef __cplusplus
+ }
+#endif