소스 검색

db_flatstore: exported DB API v1 bind function

- bind function for DB API v1 was no longer exported upon merging with
  implementation of DB API V2
- reported by Javier Gallart
Daniel-Constantin Mierla 15 년 전
부모
커밋
3e44fcbe47
2개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      modules/db_flatstore/flatstore_mod.c
  2. 4 0
      modules/db_flatstore/km_flatstore_mod.h

+ 1 - 0
modules/db_flatstore/flatstore_mod.c

@@ -110,6 +110,7 @@ static cmd_export_t cmds[] = {
 	{"db_con", (cmd_function)flat_con, 0, 0, 0},
 	{"db_con", (cmd_function)flat_con, 0, 0, 0},
 	{"db_cmd", (cmd_function)flat_cmd, 0, 0, 0},
 	{"db_cmd", (cmd_function)flat_cmd, 0, 0, 0},
 	{"db_put", (cmd_function)flat_put, 0, 0, 0},
 	{"db_put", (cmd_function)flat_put, 0, 0, 0},
+	{"db_bind_api", (cmd_function)db_flat_bind_api,      0, 0, 0},
 	{0, 0, 0, 0, 0}
 	{0, 0, 0, 0, 0}
 };
 };
 
 

+ 4 - 0
modules/db_flatstore/km_flatstore_mod.h

@@ -32,6 +32,8 @@
 
 
 #include <time.h>
 #include <time.h>
 
 
+#include "../../lib/srdb1/db.h"
+
 /*
 /*
  * Process number used in filenames
  * Process number used in filenames
  */
  */
@@ -63,5 +65,7 @@ void km_mod_destroy(void);
 
 
 int km_child_init(int rank);
 int km_child_init(int rank);
 
 
+int db_flat_bind_api(db_func_t *dbb);
+
 
 
 #endif /* KM_FLATSTORE_MOD_H */
 #endif /* KM_FLATSTORE_MOD_H */