syslog-ng source
appmodel-context.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2017 Balabit
3  * Copyright (c) 2017 Balazs Scheidler <balazs.scheidler@balabit.com>
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of the GNU General Public License version 2 as published
7  * by the Free Software Foundation, or (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17  *
18  * As an additional exemption you are allowed to compile & link against the
19  * OpenSSL libraries as published by the OpenSSL project. See the file
20  * COPYING for details.
21  *
22  */
23 #ifndef APPMODEL_CONTEXT_H_INCLUDED
24 #define APPMODEL_CONTEXT_H_INCLUDED 1
25 
26 #include "module-config.h"
27 #include "application.h"
28 
29 typedef struct _AppModelContext AppModelContext;
30 
31 void appmodel_context_iter_applications(AppModelContext *self,
32  void (*foreach)(Application *app, Application *base_app, gpointer user_data),
33  gpointer user_data);
34 Application *appmodel_context_lookup_application(AppModelContext *self, const gchar *name, const gchar *topic);
35 void appmodel_context_register_application(AppModelContext *self, Application *app);
36 void appmodel_context_free(AppModelContext *self);
37 AppModelContext *appmodel_context_new(void);
38 
39 #endif
Application * appmodel_context_lookup_application(AppModelContext *self, const gchar *name, const gchar *topic)
Definition: appmodel-context.c:81
void appmodel_context_free(AppModelContext *self)
Definition: appmodel-context.c:131
void appmodel_context_iter_applications(AppModelContext *self, void(*foreach)(Application *app, Application *base_app, gpointer user_data), gpointer user_data)
Definition: appmodel-context.c:91
AppModelContext * appmodel_context_new(void)
Definition: appmodel-context.c:119
void appmodel_context_register_application(AppModelContext *self, Application *app)
Definition: appmodel-context.c:61
const gchar * name
Definition: debugger.c:265
Definition: application.h:30
Definition: appmodel-context.c:29