aboutsummaryrefslogtreecommitdiffstats
path: root/libevolution-utils/evolution-util.h
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2012-02-29 19:50:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-03-03 22:02:33 +0800
commit2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef (patch)
tree9808b4e8dddd8cfaf611dbb9f5d8f353600ece01 /libevolution-utils/evolution-util.h
parent449e05f1b232fa2a1a92ae7c08c0f2b8870ac23a (diff)
downloadgsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar.gz
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar.bz2
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar.lz
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar.xz
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.tar.zst
gsoc2013-evolution-2e7fe9a4ea35642befbe03fd2f347b8dfd6d73ef.zip
Make libevolution-util compilable.
Diffstat (limited to 'libevolution-utils/evolution-util.h')
-rw-r--r--libevolution-utils/evolution-util.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/libevolution-utils/evolution-util.h b/libevolution-utils/evolution-util.h
new file mode 100644
index 0000000000..5d1830bfae
--- /dev/null
+++ b/libevolution-utils/evolution-util.h
@@ -0,0 +1,42 @@
+/*
+ * This program 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 of the License, or (at your option) version 3.
+ *
+ * This program 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 the program; if not, see <http://www.gnu.org/licenses/>
+ *
+ *
+ * Authors:
+ Srinivasa Ragavan <sragavan@gnome.org>
+ *
+ * Copyright (C) 2012 Intel Corporation (www.intel.com)
+ *
+ */
+
+#ifndef EVOLUTION_UTIL_H
+#define EVOLUTION_UTIL_H
+
+#include <sys/types.h>
+#include <glib.h>
+
+/* String to/from double conversion functions */
+gdouble e_flexible_strtod (const gchar *nptr,
+ gchar **endptr);
+
+/* 29 bytes should enough for all possible values that
+ * g_ascii_dtostr can produce with the %.17g format.
+ * Then add 10 for good measure */
+#define E_ASCII_DTOSTR_BUF_SIZE (DBL_DIG + 12 + 10)
+gchar * e_ascii_dtostr (gchar *buffer,
+ gint buf_len,
+ const gchar *format,
+ gdouble d);
+
+#endif /* EVOLUTION_UTIL_H */