Implemented helpers to get talker email and name.
[cascardo/avaliacao2008.git] / helper.h
diff --git a/helper.h b/helper.h
new file mode 100644 (file)
index 0000000..df43f9c
--- /dev/null
+++ b/helper.h
@@ -0,0 +1,28 @@
+/*
+ *  Copyright (C) 2009  Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ *  This program 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 program 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 program; if not, write to the Free Software Foundation, Inc.,
+ *  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+#ifndef _HELPER_H
+#define _HELPER_H
+
+#include <sqlite3.h>
+
+char * get_talker_email(sqlite3 *db, int id);
+char * get_talker_name(sqlite3 *db, int id);
+
+#endif