00001 // Filename: interrogate_request.cxx 00002 // Created by: drose (01Aug00) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 #include "interrogate_request.h" 00020 #include "interrogateDatabase.h" 00021 00022 #include <string.h> // for strdup 00023 00024 #ifdef TRACK_IN_INTERPRETER 00025 int in_interpreter = false; 00026 #endif 00027 00028 void 00029 interrogate_request_database(const char *database_filename) { 00030 InterrogateModuleDef *def = new InterrogateModuleDef; 00031 memset(def, 0, sizeof(InterrogateModuleDef)); 00032 def->database_filename = strdup(database_filename); 00033 00034 // Don't think of this as a leak; think of it as a one-time database 00035 // allocation. 00036 InterrogateDatabase::get_ptr()->request_module(def); 00037 } 00038 00039 void 00040 interrogate_request_module(InterrogateModuleDef *def) { 00041 InterrogateDatabase::get_ptr()->request_module(def); 00042 }