1/*
2 * Copyright 2008-2010, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
4 */
5#ifndef NET_NOTIFICATIONS_H
6#define NET_NOTIFICATIONS_H
7
8
9#include <module.h>
10#include <NetworkNotifications.h>
11
12
13#define NET_NOTIFICATIONS_MODULE_NAME "network/notifications/v1"
14
15namespace BPrivate {
16	class KMessage;
17};
18
19struct net_notifications_module_info {
20	module_info info;
21
22	status_t (*send_notification)(const BPrivate::KMessage* event);
23};
24
25// generic syscall interface
26#define NET_NOTIFICATIONS_SYSCALLS "network/notifications"
27
28#define NET_NOTIFICATIONS_CONTROL_WATCHING	1
29
30struct net_notifications_control {
31	uint32		flags;
32	port_id		port;
33	uint32		token;
34};
35
36
37#endif	// NET_NOTIFICATIONS_H
38