Panda3D
 All Classes Functions Variables Enumerations
interrogate_request.cxx
00001 // Filename: interrogate_request.cxx
00002 // Created by:  drose (01Aug00)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "interrogate_request.h"
00016 #include "interrogateDatabase.h"
00017 
00018 #include <string.h>  // for strdup
00019 
00020 void
00021 interrogate_request_database(const char *database_filename) {
00022   InterrogateModuleDef *def = new InterrogateModuleDef;
00023   memset(def, 0, sizeof(InterrogateModuleDef));
00024   def->database_filename = strdup(database_filename);
00025 
00026   // Don't think of this as a leak; think of it as a one-time database
00027   // allocation.
00028   InterrogateDatabase::get_ptr()->request_module(def);
00029 }
00030 
00031 void
00032 interrogate_request_module(InterrogateModuleDef *def) {
00033   InterrogateDatabase::get_ptr()->request_module(def);
00034 }
 All Classes Functions Variables Enumerations