PluginIOMgr.C File Reference

#include <stdio.h>
#include "PluginIOMgr.h"

Go to the source code of this file.

Functions

int register_cb (void *v, vmdplugin_t *p)


Function Documentation

int register_cb ( void *  v,
vmdplugin_t *  p 
)

Definition at line 6 of file PluginIOMgr.C.

References PluginIOMgr::setPlugin().

Referenced by main(), PluginIOMgr::PluginIOMgr(), and ScriptTcl::ScriptTcl().

00006                                         {
00007 /*    const char *key = p->name;
00008     if (num_plugins >= MAX_PLUGINS) {
00009         fprintf(stderr, "Exceeded maximum allowed number of plugins; recompile. :(\n");
00010         return NAMDPLUGIN_ERROR;
00011     }
00012     if (hash_insert(&pluginhash, key, num_plugins) != HASH_FAIL) {
00013         fprintf(stderr, "Multiple plugins for file type '%s' found!", key);
00014         return NAMDPLUGIN_ERROR;
00015     }
00016     plugins[num_plugins++] = (molfile_plugin_t *)p;
00017     return NAMDPLUGIN_SUCCESS;
00018 */
00019     PluginIOMgr *me = (PluginIOMgr *)v;
00020     me->setPlugin((molfile_plugin_t *)p);
00021     return 0;
00022 }


Generated on Sat Sep 23 01:17:17 2017 for NAMD by  doxygen 1.4.7