• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

P_RecMessage.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   Private RecMessage declarations
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 #ifndef _P_REC_MESSAGE_H_
00025 #define _P_REC_MESSAGE_H_
00026 
00027 #include "P_RecDefs.h"
00028 
00029 //-------------------------------------------------------------------------
00030 // Initialization
00031 //-------------------------------------------------------------------------
00032 
00033 //int RecMessageInit();
00034 void RecMessageRegister();
00035 
00036 //-------------------------------------------------------------------------
00037 // Message Operations
00038 //-------------------------------------------------------------------------
00039 
00040 RecMessage *RecMessageAlloc(RecMessageT msg_type, int initial_size = 256);
00041 int RecMessageFree(RecMessage * msg);
00042 
00043 RecMessage *RecMessageMarshal_Realloc(RecMessage * msg, const RecRecord * record);
00044 int RecMessageUnmarshalFirst(RecMessage * msg, RecMessageItr * itr, RecRecord ** record);
00045 int RecMessageUnmarshalNext(RecMessage * msg, RecMessageItr * itr, RecRecord ** record);
00046 
00047 int RecMessageSend(RecMessage * msg);
00048 int RecMessageRegisterRecvCb(RecMessageRecvCb recv_cb, void *cookie);
00049 void *RecMessageRecvThis(void *cookie, char *data_raw, int data_len);
00050 
00051 RecMessage *RecMessageReadFromDisk(const char *fpath);
00052 int RecMessageWriteToDisk(RecMessage *msg, const char *fpath);
00053 
00054 #endif

Generated by  doxygen 1.7.1