2008-12-10 02:16:10 +03:00
|
|
|
/*
|
2010-10-26 14:24:17 +04:00
|
|
|
* Copyright 2008-2010, Haiku, Inc. All Rights Reserved.
|
2008-12-10 02:16:10 +03:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef NET_NOTIFICATIONS_H
|
|
|
|
#define NET_NOTIFICATIONS_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <module.h>
|
2010-10-26 14:24:17 +04:00
|
|
|
#include <NetworkNotifications.h>
|
2008-12-10 02:16:10 +03:00
|
|
|
|
|
|
|
|
|
|
|
#define NET_NOTIFICATIONS_MODULE_NAME "network/notifications/v1"
|
|
|
|
|
|
|
|
namespace BPrivate {
|
|
|
|
class KMessage;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct net_notifications_module_info {
|
|
|
|
module_info info;
|
|
|
|
|
2008-12-10 04:06:50 +03:00
|
|
|
status_t (*send_notification)(const BPrivate::KMessage* event);
|
2008-12-10 02:16:10 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
// generic syscall interface
|
|
|
|
#define NET_NOTIFICATIONS_SYSCALLS "network/notifications"
|
|
|
|
|
2008-12-27 23:48:28 +03:00
|
|
|
#define NET_NOTIFICATIONS_CONTROL_WATCHING 1
|
2008-12-10 02:16:10 +03:00
|
|
|
|
|
|
|
struct net_notifications_control {
|
|
|
|
uint32 flags;
|
|
|
|
port_id port;
|
|
|
|
uint32 token;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // NET_NOTIFICATIONS_H
|