• Main Page
  • Related Pages
  • Modules
  • Data Structures
  • Files
  • File List
  • Globals

sst/elements/genericProc/programs/libcprops/db_mysql.h

Go to the documentation of this file.
00001 #ifndef _CP_MYSQL_H
00002 #define _CP_MYSQL_H
00003 
00004 /**
00005  * @addtogroup cp_dbms
00006  */
00007 /** @{ */
00008 /**
00009  * @file
00010  * definitions for mysql driver
00011  */
00012 
00013 #include "common.h"
00014 #include "db.h"
00015 
00016 __BEGIN_DECLS
00017 
00018 CPROPS_DLL
00019 cp_data_source *
00020         cp_mysql_data_source(char *host, 
00021                                                  char *login, 
00022                                                  char *password, 
00023                                                  char *db_name, 
00024                                                  unsigned int port,
00025                                                  char *unix_socket, 
00026                                                  unsigned long client_flag);
00027 
00028 CPROPS_DLL
00029 cp_data_source *
00030         cp_dbms_mysql_get_data_source(char *host, 
00031                                               int port, 
00032                                                                   char *login, 
00033                                                                   char *password,
00034                                                                   char *dbname);
00035 
00036 CPROPS_DLL
00037 cp_data_source *
00038         cp_dbms_mysql_get_data_source_prm(char *host,
00039                                                   int port, 
00040                                                                           char *login, 
00041                                                                           char *password, 
00042                                                                           char *dbname, 
00043                                                                           cp_hashtable *prm);
00044 
00045 typedef CPROPS_DLL struct _cp_mysql_connection_parameters
00046 {
00047         char *host;
00048         char *login;
00049         char *password;
00050         char *db_name;
00051         unsigned int port;
00052         char *unix_socket;
00053         unsigned long client_flag;
00054 } cp_mysql_connection_parameters;
00055 
00056 __END_DECLS
00057 
00058 /** @} */
00059 
00060 #endif

Generated on Fri Oct 22 2010 11:02:22 for SST by  doxygen 1.7.1