summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 325bcef)
raw | patch | inline | side by side (parent: 325bcef)
author | Florian Forster <octo@collectd.org> | |
Wed, 9 Jan 2013 10:19:57 +0000 (11:19 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Wed, 9 Jan 2013 10:19:57 +0000 (11:19 +0100) |
src/riemann.c | patch | blob | history |
diff --git a/src/riemann.c b/src/riemann.c
index f14996828a41efcc209373f6733966cd6dafbe3a..7fcd4dea1819d025e108fb6cd772e6371e40c1b2 100644 (file)
--- a/src/riemann.c
+++ b/src/riemann.c
const char *tags[RIEMANN_MAX_TAGS];
};
-char *riemann_tags[RIEMANN_EXTRA_TAGS];
-int riemann_tagcount;
-
-int riemann_send(struct riemann_host *, Msg const *);
-int riemann_notification(const notification_t *, user_data_t *);
-int riemann_write(const data_set_t *, const value_list_t *, user_data_t *);
-int riemann_connect(struct riemann_host *);
-int riemann_disconnect (struct riemann_host *host);
-void riemann_free(void *);
-int riemann_config_host(oconfig_item_t *);
-int riemann_config(oconfig_item_t *);
+static char *riemann_tags[RIEMANN_EXTRA_TAGS];
+static int riemann_tagcount;
+
+static int riemann_send(struct riemann_host *, Msg const *);
+static int riemann_notification(const notification_t *, user_data_t *);
+static int riemann_write(const data_set_t *, const value_list_t *, user_data_t *);
+static int riemann_connect(struct riemann_host *);
+static int riemann_disconnect (struct riemann_host *host);
+static void riemann_free(void *);
+static int riemann_config_host(oconfig_item_t *);
+static int riemann_config(oconfig_item_t *);
void module_register(void);
-int
+static int
riemann_send(struct riemann_host *host, Msg const *msg)
{
u_char *buffer;
return 0;
}
-int
+static int
riemann_notification(const notification_t *n, user_data_t *ud)
{
int i;
return riemann_send(host, &msg);
}
-int
+static int
riemann_write(const data_set_t *ds,
const value_list_t *vl,
user_data_t *ud)
return status;
}
-int
+static int
riemann_connect(struct riemann_host *host)
{
int e;
return 0;
}
-int
+static int
riemann_disconnect (struct riemann_host *host)
{
if (host == NULL)
return (0);
}
-void
+static void
riemann_free(void *p)
{
struct riemann_host *host = p;
sfree(host);
}
-int
+static int
riemann_config_host(oconfig_item_t *ci)
{
struct riemann_host *host = NULL;
return status;
}
-int
+static int
riemann_config(oconfig_item_t *ci)
{
int i;