Panda3D
 All Classes Functions Variables Enumerations
interrogate_request.cxx
1 // Filename: interrogate_request.cxx
2 // Created by: drose (01Aug00)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "interrogate_request.h"
16 #include "interrogateDatabase.h"
17 
18 #include <string.h> // for strdup
19 
20 void
21 interrogate_request_database(const char *database_filename) {
23  memset(def, 0, sizeof(InterrogateModuleDef));
24  def->database_filename = strdup(database_filename);
25 
26  // Don't think of this as a leak; think of it as a one-time database
27  // allocation.
29 }
30 
31 void
32 interrogate_request_module(InterrogateModuleDef *def) {
34 }
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.