aboutsummaryrefslogtreecommitdiff
path: root/src/grecs.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/grecs.h')
-rw-r--r--src/grecs.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/grecs.h b/src/grecs.h
index 25f068f..8f0ddc6 100644
--- a/src/grecs.h
+++ b/src/grecs.h
@@ -37,6 +37,9 @@
# define N_(s) s
#endif
+#define GRECS_VERSION_MAJOR 1
+#define GRECS_VERSION_MINOR 0
+
struct grecs_version_info {
const char *package;
const char *version;
@@ -44,6 +47,7 @@ struct grecs_version_info {
int minor;
int patch;
char *suffix;
+ char *buffer;
};
typedef struct {
@@ -163,8 +167,14 @@ struct grecs_sockaddr {
struct sockaddr *sa;
};
-void grecs_version(struct grecs_version_info *pv);
-int grecs_version_cmp(const char *vstr);
+struct grecs_version_info *grecs_version(void);
+int grecs_version_cmp(const char *vstr1, const char *vstr2, int *pres);
+int grecs_version_ok(const char *vstr);
+void grecs_version_info_free(struct grecs_version_info *pv);
+struct grecs_version_info *grecs_version_split(const char *vstr);
+int grecs_version_info_cmp(struct grecs_version_info *vx,
+ struct grecs_version_info *vy,
+ int *pres);
extern void *(*grecs_malloc_fun)(size_t size);
extern void *(*grecs_realloc_fun)(void *ptr, size_t size);

Return to:

Send suggestions and report system problems to the System administrator.