libmongo-client 0.1.4
|
00001 /* mongo-sync-cursor.h - libmongo-client cursor API on top of Sync 00002 * Copyright 2011 Gergely Nagy <algernon@balabit.hu> 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 00024 #ifndef LIBMONGO_SYNC_CURSOR_H 00025 #define LIBMONGO_SYNC_CURSOR_H 1 00026 00027 #include <glib.h> 00028 #include <mongo-sync.h> 00029 00030 G_BEGIN_DECLS 00031 00039 typedef struct _mongo_sync_cursor mongo_sync_cursor; 00040 00057 mongo_sync_cursor *mongo_sync_cursor_new (mongo_sync_connection *conn, 00058 const gchar *ns, 00059 mongo_packet *packet); 00060 00075 gboolean mongo_sync_cursor_next (mongo_sync_cursor *cursor); 00076 00085 bson *mongo_sync_cursor_get_data (mongo_sync_cursor *cursor); 00086 00095 void mongo_sync_cursor_free (mongo_sync_cursor *cursor); 00096 00101 G_END_DECLS 00102 00103 #endif