aboutsummaryrefslogtreecommitdiffstats
path: root/libgeome_get_from_netservice.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgeome_get_from_netservice.c')
-rw-r--r--libgeome_get_from_netservice.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libgeome_get_from_netservice.c b/libgeome_get_from_netservice.c
new file mode 100644
index 0000000..39abc87
--- /dev/null
+++ b/libgeome_get_from_netservice.c
@@ -0,0 +1,12 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+
+
+int
+libgeome_get_from_netservice(struct libgeome_context *ctx, struct libgeome_data *out, const struct libgeome_netservice *svc)
+{
+ if (svc->patterned)
+ return libgeome_get_from_patterned_command(ctx, out, svc->limit, svc->alarm_seconds, svc->path, svc->args);
+ else
+ return libgeome_get_from_command(ctx, out, svc->limit, svc->alarm_seconds, svc->path, svc->args);
+}