1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* NotificationProxy.h
* Notification Proxy header file.
*
* Copyright (c) 2009 Nikias Bassen, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef INOTIFICATION_PROXY_H
#define INOTIFICATION_PROXY_H
#include <glib.h>
#include "libiphone/notification_proxy.h"
struct np_client_int {
int sfd;
GMutex *mutex;
GThread *notifier;
};
static const char *np_default_notifications[11] = {
NP_SYNC_SUSPEND_REQUEST,
NP_SYNC_RESUME_REQUEST,
NP_PHONE_NUMBER_CHANGED,
NP_SYNC_CANCEL_REQUEST,
NP_DEVICE_NAME_CHANGED,
NP_ATTEMPTACTIVATION,
NP_DS_DOMAIN_CHANGED,
NP_APP_INSTALLED,
NP_APP_UNINSTALLED,
NP_ITDBPREP_DID_END,
NULL
};
gpointer np_notifier(gpointer arg);
#endif
|