|
From: <me...@us...> - 2007-08-22 13:55:40
|
Revision: 826
http://gmyth.svn.sourceforge.net/gmyth/?rev=826&view=rev
Author: melunko
Date: 2007-08-22 06:55:41 -0700 (Wed, 22 Aug 2007)
Log Message:
-----------
gmyth-ls and gmyth_query now considers db_port. Thanks to Bastien Nocera for his patch.
Modified Paths:
--------------
trunk/gmyth/samples/gmyth_ls.c
trunk/gmyth/src/gmyth_query.c
Modified: trunk/gmyth/samples/gmyth_ls.c
===================================================================
--- trunk/gmyth/samples/gmyth_ls.c 2007-08-22 13:07:49 UTC (rev 825)
+++ trunk/gmyth/samples/gmyth_ls.c 2007-08-22 13:55:41 UTC (rev 826)
@@ -42,6 +42,7 @@
gchar *host_ip = NULL;
gint host_port = 0;
+ gint db_port = 0;
gboolean list_channels = FALSE;
gchar *username = NULL;
gchar *password = NULL;
@@ -59,13 +60,17 @@
"LIST_CHANNELS"},
{"username", 'u', 0, G_OPTION_ARG_STRING, &username,
- "Mysql database username. Default: mythtv" "Mysql user",
+ "Mysql database username. Default: mythtv",
"MYSQL_USER"},
{"password", 'w', 0, G_OPTION_ARG_STRING, &password,
- "Mysql database password. Default: mythtv" "Mysql password",
+ "Mysql database password. Default: mythtv",
"MYSQL_PASSWD"},
+ {"db_port", 'P', 0, G_OPTION_ARG_STRING, &db_port,
+ "Mysql database port. Default: 0",
+ "MYSQL_PORT"},
+
{NULL}
};
Modified: trunk/gmyth/src/gmyth_query.c
===================================================================
--- trunk/gmyth/src/gmyth_query.c 2007-08-22 13:07:49 UTC (rev 825)
+++ trunk/gmyth/src/gmyth_query.c 2007-08-22 13:55:41 UTC (rev 826)
@@ -161,7 +161,9 @@
gmyth_query->backend_info->hostname,
gmyth_query->backend_info->username,
gmyth_query->backend_info->password,
- gmyth_query->backend_info->db_name, 0, NULL,
+ gmyth_query->backend_info->db_name,
+ gmyth_query->backend_info->db_port,
+ NULL,
0) == NULL) {
gmyth_query_print_error(gmyth_query->conn,
"mysql_real_connect() failed");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|