globus_memory.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 1999-2006 University of Chicago
00003  * 
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  * 
00008  * http://www.apache.org/licenses/LICENSE-2.0
00009  * 
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00022 #if !defined(GLOBUS_MEMORY_H)
00023 #define GLOBUS_MEMORY_H 
00024 
00025 /******************************************************************************
00026                              Include header files
00027 ******************************************************************************/
00028 #include "globus_types.h"
00029 #include "globus_module.h"
00030 #include "globus_thread.h"
00031 
00032 #ifdef __cplusplus
00033 extern "C" {
00034 #endif
00035 
00043 /******************************************************************************
00044                                Type definitions
00045 ******************************************************************************/
00046 
00047 struct globus_memory_s;
00048 typedef struct globus_memory_s *                globus_memory_t;
00049 
00050 globus_bool_t
00051 globus_i_memory_pre_activate();
00052 
00053 globus_bool_t
00054 globus_memory_init(
00055     globus_memory_t *             mem_info,
00056     int                           node_size,
00057     int                           node_count);
00058 
00059 void *
00060 globus_memory_pop_node(
00061     globus_memory_t *                           mem_info);
00062 
00063 globus_bool_t
00064 globus_memory_push_node(
00065     globus_memory_t *          mem_info,
00066     void *                      buf);
00067 
00068 globus_bool_t
00069 globus_memory_destroy(
00070     globus_memory_t *                           mem_info);
00071 
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 #endif /* GLOBUS_MEMORY_H */

Generated on 20 Jun 2015 for globus_common by  doxygen 1.4.7