35 lines
1.1 KiB
C++
35 lines
1.1 KiB
C++
// Filename: interrogate_request.cxx
|
|
// Created by: drose (01Aug00)
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
//
|
|
// PANDA 3D SOFTWARE
|
|
// Copyright (c) Carnegie Mellon University. All rights reserved.
|
|
//
|
|
// All use of this software is subject to the terms of the revised BSD
|
|
// license. You should have received a copy of this license along
|
|
// with this source code in a file named "LICENSE."
|
|
//
|
|
////////////////////////////////////////////////////////////////////
|
|
|
|
#include "interrogate_request.h"
|
|
#include "interrogateDatabase.h"
|
|
|
|
#include <string.h> // for strdup
|
|
|
|
void
|
|
interrogate_request_database(const char *database_filename) {
|
|
InterrogateModuleDef *def = new InterrogateModuleDef;
|
|
memset(def, 0, sizeof(InterrogateModuleDef));
|
|
def->database_filename = strdup(database_filename);
|
|
|
|
// Don't think of this as a leak; think of it as a one-time database
|
|
// allocation.
|
|
InterrogateDatabase::get_ptr()->request_module(def);
|
|
}
|
|
|
|
void
|
|
interrogate_request_module(InterrogateModuleDef *def) {
|
|
InterrogateDatabase::get_ptr()->request_module(def);
|
|
}
|