1 /* vi:set et ai sw=2 sts=2 ts=2: */
3 * Copyright (c) 2012 GENIVI.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef __WATCHDOG_CLIENT_H__
11 #define __WATCHDOG_CLIENT_H__
17 #define TYPE_WATCHDOG_CLIENT (watchdog_client_get_type ())
18 #define WATCHDOG_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TYPE_WATCHDOG_CLIENT, WatchdogClient))
19 #define WATCHDOG_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), TYPE_WATCHDOG_CLIENT, WatchdogClientClass))
20 #define IS_WATCHDOG_CLIENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TYPE_WATCHDOG_CLIENT))
21 #define IS_WATCHDOG_CLIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), TYPE_WATCHDOG_CLIENT))
22 #define WATCHDOG_CLIENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), TYPE_WATCHDOG_CLIENT, WatchdogClientClass))
24 typedef struct _WatchdogClientClass WatchdogClientClass;
25 typedef struct _WatchdogClient WatchdogClient;
27 GType watchdog_client_get_type (void) G_GNUC_CONST;
29 WatchdogClient *watchdog_client_new (guint timeout) G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
33 #endif /* !__WATCHDOG_CLIENT_H__ */