Initial commit of libpnd 0.0.5 so we cna restart with GIT
[pandora-libraries.git] / include / pnd_notify.h
1
2 #ifndef h_pnd_notify_h
3 #define h_pnd_notify_h
4
5 #ifdef __cplusplus
6 extern "C" {
7 #endif
8
9 typedef void* pnd_notify_handle;
10
11 /* must invoke this to obtain a handle; other notify functions require it of course.
12  * Returns NULL on failure.
13  */
14 pnd_notify_handle pnd_notify_init ( void );
15
16 /* shutdown..
17  */
18 void pnd_notify_shutdown ( pnd_notify_handle h );
19
20 /* rescan_p (rescan predicate) -- wil return TRUE (>0) when the notify is reporting
21  * that we should do a re-discovery against the paths.
22  * NOTE:
23  * (Yes this is a little brute-forcey .. it should just collect notify events
24  * and suss-out the changes, and add/sub those from a working list of applications.)
25  */
26 unsigned char pnd_notify_rediscover_p ( pnd_notify_handle h );
27
28 #ifdef __cplusplus
29 } /* "C" */
30 #endif
31
32 #endif