blob: 3552b797921cf57fbd4c833e3201c076708da264 [file] [log] [blame]
/*
* 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
*/
#include "libiphone/libiphone.h"
#include "usbmux.h"
#include "iphone.h"
#include <glib.h>
struct iphone_np_client_int {
iphone_umux_client_t connection;
GMutex *mutex;
GThread *notifier;
};
static const char *np_default_notifications[10] = {
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,
NULL
};
gpointer iphone_np_notifier( gpointer arg );