diff --git a/src/server/mysql.h b/src/server/mysql.h --- a/src/server/mysql.h +++ b/src/server/mysql.h @@ -34,10 +34,14 @@ typedef struct distrend_mysql_result *di /** initiates a MySQL connection - @param conn, pointer will be set to the struct + @param conn pointer will be set to the struct + @param user the mysql username + @param host the hostname of the mysql server + @param pass the password for the mysql account + @param database the database on the mysql server to use @return 0 on success */ -int mysqlConnect(distrend_mysql_conn_t *conn); +int mysqlConnect(distrend_mysql_conn_t *conn, const char *user, const char *host, const char *pass, const char *database); /** cleans and disconnects MySQL connection