aboutsummaryrefslogtreecommitdiffstats
path: root/libgeome_get_from_netservice.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-03-27 19:54:15 +0100
committerMattias Andrée <m@maandree.se>2025-03-27 19:54:15 +0100
commit92f400215ebb28d9a4cc97095d9c4d1a57f7092f (patch)
tree221114f48bc2676ca2cee171dcd6aa01b478fe02 /libgeome_get_from_netservice.c
parentAdd tests and some fixes (diff)
downloadlibgeome-92f400215ebb28d9a4cc97095d9c4d1a57f7092f.tar.gz
libgeome-92f400215ebb28d9a4cc97095d9c4d1a57f7092f.tar.bz2
libgeome-92f400215ebb28d9a4cc97095d9c4d1a57f7092f.tar.xz
Add patterns for commands (breaks backwards compatbility because libgeome_get_from_netservice was inlined) + add libgeome_get_portability
Signed-off-by: Mattias Andrée <m@maandree.se>
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);
+}