Panda3D
interrogate_request.cxx
Go to the documentation of this file.
1 /**
2  * PANDA 3D SOFTWARE
3  * Copyright (c) Carnegie Mellon University. All rights reserved.
4  *
5  * All use of this software is subject to the terms of the revised BSD
6  * license. You should have received a copy of this license along
7  * with this source code in a file named "LICENSE."
8  *
9  * @file interrogate_request.cxx
10  * @author drose
11  * @date 2000-08-01
12  */
13 
14 #include "interrogate_request.h"
15 #include "interrogateDatabase.h"
16 
17 #include <string.h> // for strdup
18 
19 void
20 interrogate_request_database(const char *database_filename) {
22  memset(def, 0, sizeof(InterrogateModuleDef));
23 #ifdef _WIN32
24  def->database_filename = _strdup(database_filename);
25 #else
26  def->database_filename = strdup(database_filename);
27 #endif
28 
29  // Don't think of this as a leak; think of it as a one-time database
30  // allocation.
32 }
33 
34 void
35 interrogate_request_module(InterrogateModuleDef *def) {
37 }
void request_module(InterrogateModuleDef *def)
Requests that the interrogate data for the given module be made available.
static InterrogateDatabase * get_ptr()
Returns the global pointer to the one InterrogateDatabase.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.