Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add stubs for GridFS wrapper

  • Loading branch information...
commit 07bcf9468183225fc733a149866f68d152e5672c 1 parent 030b3e0
@paulcbetts authored
Showing with 72 additions and 0 deletions.
  1. +1 −0  src/Makefile.am
  2. +37 −0 src/gridfs_wrapper.cpp
  3. +34 −0 src/gridfs_wrapper.h
View
1  src/Makefile.am
@@ -14,6 +14,7 @@ mongodbfs_LDADD = $(MONGODBFS_LIBS) -lgthread-2.0 -lpthread \
#-levent
mongodbfs_SOURCES = \
+ gridfs_wrapper.cpp \
main.cpp \
mongodbfs.c \
stats.c \
View
37 src/gridfs_wrapper.cpp
@@ -0,0 +1,37 @@
+/*
+ * gridfs_wrapper.cpp - C wrapper around the C++ GridFS API
+ *
+ * Copyright 2008 Paul Betts <paul.betts@gmail.com>
+ *
+ *
+ * License:
+ *
+ * This package is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This package is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this package; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+extern "C" {
+#include "stdafx.h"
+#include "gridfs_wrapper.h"
+#include "config.h"
+}
+
+mongo_conn_t mongodb_conn_create(const char* host, int port)
+{
+ return NULL;
+}
+
+void mongodb_conn_free(mongo_conn_t conn)
+{
+}
View
34 src/gridfs_wrapper.h
@@ -0,0 +1,34 @@
+/*
+ * gridfs_wrapper.h - C wrapper around the C++ GridFS API
+ *
+ * Copyright 2008 Paul Betts <paul.betts@gmail.com>
+ *
+ *
+ * License:
+ *
+ * This package is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This package is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this package; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+
+#ifndef _GRIDFS_WRAPPER_H
+#define _GRIDFS_WRAPPER_H
+
+#include "stdafx.h"
+
+typedef void* mongo_conn_t;
+
+mongo_conn_t mongodb_conn_create(const char* host, int port);
+void mongodb_conn_free(mongo_conn_t conn);
+
+#endif
Please sign in to comment.
Something went wrong with that request. Please try again.