Panda3D
 All Classes Functions Variables Enumerations
config_http.cxx
00001 // Filename: config_http.cxx
00002 // Created by:  drose (15Mar09)
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 "config_http.h"
00016 #include "http_connection.h"
00017 #include "http_request.h"
00018 #include "dconfig.h"
00019 
00020 Configure(config_http);
00021 NotifyCategoryDef(http, "");
00022 
00023 ConfigureFn(config_http) {
00024   init_libhttp();
00025 }
00026 
00027 ////////////////////////////////////////////////////////////////////
00028 //     Function: init_libhttp
00029 //  Description: Initializes the library.  This must be called at
00030 //               least once before any of the functions or classes in
00031 //               this library can be used.  Normally it will be
00032 //               called by the static initializers and need not be
00033 //               called explicitly, but special cases exist.
00034 ////////////////////////////////////////////////////////////////////
00035 void
00036 init_libhttp() {
00037   static bool initialized = false;
00038   if (initialized) {
00039     return;
00040   }
00041   initialized = true;
00042 
00043   HttpConnection::init_type();
00044   Http_Request::init_type();
00045 }
00046 
 All Classes Functions Variables Enumerations