The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
switchdiscovery.h
Go to the documentation of this file.
1 
24 #ifndef _SWITCHDISCOVERY_H
25 #define _SWITCHDISCOVERY_H
26 #include <projectcommon.h>
27 #include <discovery.h>
28 #include <pcap_GSource.h>
31 
36  GSource* source;
37  void (*finalize)(AssimObj* self);
38  gpointer switchid;
39  gssize switchidlen;
40  gpointer portid;
41  gssize portidlen;
42 };
43 
45 , GMainContext* mcontext, NetGSource*iosrc, ConfigContext* config, gsize objsize);
46 
48 
49 #endif /* _SWITCHDISCOVERY_H */
gpointer switchid
Saved parent class destructor.
void(* finalize)(AssimObj *self)
GSource for the pcap data.
#define WINEXPORT
Definition: projectcommon.h:45
GSource * source
Base class object.
SwitchDiscovery C-class - for discovering switch and port configuration via LLDP, CDP and similar pro...
Semi-Abstract class (yes, really) defining discovery objects.
gpointer portid
Length of 'switchid'.
WINEXPORT SwitchDiscovery * switchdiscovery_new(ConfigContext *swconfig, gint priority, GMainContext *mcontext, NetGSource *iosrc, ConfigContext *config, gsize objsize)
SwitchDiscovery constructor.
Project common header file.
gssize switchidlen
Current switch identification information.
Discovery class abstract C-class - it supports discovering "things" through subclasses for different ...
Definition: discovery.h:47
gssize portidlen
Current port id information.
libpcap Packet capture Gsource interface description
The NetGSource class objects integrate NetIO class objects into the g_main_loop paradigm.
Definition: netgsource.h:43