src/ws/cockpittemplate.h
raw| 1 | /* |
| 2 | * Copyright (C) 2014 Red Hat, Inc. |
| 3 | * SPDX-License-Identifier: LGPL-2.1-or-later |
| 4 | */ |
| 5 | |
| 6 | #ifndef COCKPIT_TEMPLATE_H__ |
| 7 | #define COCKPIT_TEMPLATE_H__ |
| 8 | |
| 9 | #include <glib.h> |
| 10 | #include <json-glib/json-glib.h> |
| 11 | |
| 12 | typedef GBytes * (* CockpitTemplateFunc) (const gchar *variable, |
| 13 | gpointer user_data); |
| 14 | |
| 15 | GList * cockpit_template_expand (GBytes *input, |
| 16 | CockpitTemplateFunc func, |
| 17 | gpointer user_data); |
| 18 | |
| 19 | #endif /* COCKPIT_TEMPLATE_H__ */ |