Google APIs Client Library for C++
http_transport_global_state.h
Go to the documentation of this file.
00001 /*
00002  * \copyright Copyright 2013 Google Inc. All Rights Reserved.
00003  * \license @{
00004  *
00005  * Licensed under the Apache License, Version 2.0 (the "License");
00006  * you may not use this file except in compliance with the License.
00007  * You may obtain a copy of the License at
00008  *
00009  *     http://www.apache.org/licenses/LICENSE-2.0
00010  *
00011  * Unless required by applicable law or agreed to in writing, software
00012  * distributed under the License is distributed on an "AS IS" BASIS,
00013  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  * See the License for the specific language governing permissions and
00015  * limitations under the License.
00016  *
00017  * @}
00018  */
00019 
00020 
00021 #ifndef APISERVING_CLIENTS_CPP_TRANSPORT_HTTP_TRANSPORT_GLOBAL_STATE_H_
00022 #define APISERVING_CLIENTS_CPP_TRANSPORT_HTTP_TRANSPORT_GLOBAL_STATE_H_
00023 
00024 #include "googleapis/base/macros.h"
00025 namespace googleapis {
00026 
00027 namespace client {
00028 
00029 class HttpTransportLayerConfig;
00030 
00031 /*
00032  * Returns global instance for the global configuration.
00033  *
00034  * The global configuration is not used internally so changing this has
00035  * no effect on the core runtime library. It is available to be used by
00036  * applications and libraries that wish to link with this module and use
00037  * it to share information. A more general solution that does not require
00038  * global state is to create your own <code>HttpTransportLayerConfig</code>.
00039  *
00040  * @return The library retains ownership of this instance however the
00041  *         caller can modify its attributes to configuration the runtime.
00042  */
00043 HttpTransportLayerConfig* GetGlobalHttpTransportLayerConfiguration();
00044 
00045 }  // namespace client
00046 
00047 } // namespace googleapis
00048 #endif  // APISERVING_CLIENTS_CPP_TRANSPORT_HTTP_TRANSPORT_GLOBAL_STATE_H_
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines