~ubuntu-branches/ubuntu/trusty/ntop/trusty

« back to all changes in this revision

Viewing changes to plugin.c

  • Committer: Bazaar Package Importer
  • Author(s): Ola Lundqvist
  • Date: 2008-06-15 14:38:28 UTC
  • mfrom: (2.1.11 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080615143828-oalh84nda2hje4do
Tags: 3:3.3-11
Correction of Polish translation encoding, closes: #479490. Thanks
to Christian Perrier <bubulle@debian.org> for the help.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
 *  Copyright (C) 1998-2005 Luca Deri <deri@ntop.org>
 
2
 *  Copyright (C) 1998-2007 Luca Deri <deri@ntop.org>
3
3
 *
4
4
 *                          http://www.ntop.org/
5
5
 *
23
23
#ifdef MAKE_STATIC_PLUGIN
24
24
extern PluginInfo* icmpPluginEntryFctn(void);
25
25
extern PluginInfo* sflowPluginEntryFctn(void);
26
 
#ifdef HAVE_SNMP
27
 
extern PluginInfo *snmpPluginEntryFctn(void);
28
 
#endif
29
26
#ifndef EMBEDDED
30
27
extern PluginInfo* rrdPluginEntryFctn(void);
31
28
#endif
89
86
    pluginInfo = sflowPluginEntryFctn();
90
87
  else if(strcmp(pluginName, "netflowPlugin") == 0)
91
88
    pluginInfo = netflowPluginEntryFctn();
92
 
#ifdef HAVE_SNMP
93
 
  else if(strcmp(pluginName, "snmpPlugin") == 0)
94
 
    pluginInfo = snmpPluginEntryFctn();
95
 
#endif
96
89
#ifndef EMBEDDED
97
90
  else if(strcmp(pluginName, "rrdPlugin") == 0)
98
91
    pluginInfo = rrdPluginEntryFctn();
214
207
  int idx;
215
208
  DIR* directoryPointer=NULL;
216
209
#endif
 
210
 
 
211
  if(static_ntop) return;
217
212
  
218
213
#ifndef MAKE_STATIC_PLUGIN
219
214
  for(idx=0; myGlobals.pluginDirs[idx] != NULL; idx++) {
260
255
void unloadPlugins(void) {
261
256
  FlowFilterList *flows = myGlobals.flowsList;
262
257
 
 
258
  if(static_ntop) return;
 
259
 
263
260
  traceEvent(CONST_TRACE_INFO, "PLUGIN_TERM: Unloading plugins (if any)");
264
261
 
265
262
  while(flows != NULL) {
296
293
void startPlugins(void) {
297
294
  FlowFilterList *flows = myGlobals.flowsList;
298
295
 
 
296
  if(static_ntop) return;
 
297
 
299
298
  traceEvent(CONST_TRACE_INFO, "Calling plugin start functions (if any)");
300
299
 
301
300
  while(flows != NULL) {