xref: /haiku/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/KPPPModule.h (revision 51978af14a173e7fae0563b562be5603bc652aeb)
1 //----------------------------------------------------------------------
2 //  This software is part of the OpenBeOS distribution and is covered
3 //  by the OpenBeOS license.
4 //
5 //  Copyright (c) 2003 Waldemar Kornewald, Waldemar.Kornewald@web.de
6 //---------------------------------------------------------------------
7 
8 #ifndef _K_PPP_MODULE__H
9 #define _K_PPP_MODULE__H
10 
11 #include <module.h>
12 
13 class PPPInterface;
14 
15 
16 typedef struct ppp_module_info {
17 	module_info minfo;
18 	status_t (*control)(uint32 op, void *data, size_t length);
19 	bool (*add_to)(PPPInterface& mainInterface, PPPInterface *subInterface,
20 		driver_parameter *settings, ppp_module_key_type type);
21 			// multilink: handlers that must run on a real device
22 			// should be added to subInterface (may be NULL)
23 			// while mainInterface handlers are used for the
24 			// bundle of interfaces
25 } ppp_module_info;
26 
27 
28 #endif
29