From 56f2bdb24bf13c345e7b238857c39bd2ea6a925a Mon Sep 17 00:00:00 2001
From: pans <pans@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 05 一月 2017 16:29:09 +0800
Subject: [PATCH] 

---
 RtspFace/demo/src/DBuntil.h |   14 ++++++++++----
 1 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/RtspFace/demo/src/DBuntil.h b/RtspFace/demo/src/DBuntil.h
index badd0b3..9585724 100644
--- a/RtspFace/demo/src/DBuntil.h
+++ b/RtspFace/demo/src/DBuntil.h
@@ -1,14 +1,16 @@
 #ifndef _DBUNTIL_H_
 #define _DBUNTIL_H_
-
-struct person {
+#include <mysql.h>
+struct person
+{
 	int p_id;
 	char *name;
 	int f_id;
 	//图片
 };
 
-struct my_db {
+struct my_db
+{
 	char user[25];
 	char pswd[25];
 	char host[25];
@@ -23,10 +25,13 @@
 	DBuntil();
 	DBuntil(my_db mydb);
 	~DBuntil();
-	
+
 	bool db_search(person *p);
 	bool db_register(person *p);
 
+	MYSQL myCont;
+	MYSQL_RES *result;
+	MYSQL_ROW sql_row;
 private:
 
 	bool db_add(person *per);
@@ -35,6 +40,7 @@
 
 	char sql[1024];
 	int res;
+
 };
 
 #endif
\ No newline at end of file

--
Gitblit v1.8.0