Doxygen Book
nnstreamer_watchdog.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: LGPL-2.1-only */
16 #ifndef __NNSTREAMER_WATCHDOG_H__
17 #define __NNSTREAMER_WATCHDOG_H__
18 
19 #include <glib.h>
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 typedef void *nns_watchdog_h;
26 
30 gboolean nnstreamer_watchdog_create (nns_watchdog_h *watchdog_h);
31 
36 
41 
45 gboolean nnstreamer_watchdog_feed (nns_watchdog_h watchdog_h, GSourceFunc func, guint interval, void *user_data);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif /* __NNSTREAMER_WATCHDOG_H__ */
nnstreamer_watchdog_release
void nnstreamer_watchdog_release(nns_watchdog_h watchdog_h)
Release watchdog source. Recommended using watchdog handle with proper lock (e.g.,...
Definition: nnstreamer_watchdog.c:157
nnstreamer_watchdog_create
gboolean nnstreamer_watchdog_create(nns_watchdog_h *watchdog_h)
Create nnstreamer watchdog. Recommended using watchdog handle with proper lock (e....
Definition: nnstreamer_watchdog.c:72
nnstreamer_watchdog_feed
gboolean nnstreamer_watchdog_feed(nns_watchdog_h watchdog_h, GSourceFunc func, guint interval, void *user_data)
Set watchdog timeout. Recommended using watchdog handle with proper lock (e.g., GST_OBJECT_LOCK())
Definition: nnstreamer_watchdog.c:171
nns_watchdog_h
void * nns_watchdog_h
Definition: nnstreamer_watchdog.h:25
nnstreamer_watchdog_destroy
void nnstreamer_watchdog_destroy(nns_watchdog_h watchdog_h)
Destroy nnstreamer watchdog. Recommended using watchdog handle with proper lock (e....
Definition: nnstreamer_watchdog.c:133