1.1 --- a/gmyth/src/gmyth_backendinfo.h Wed May 23 19:50:41 2007 +0100
1.2 +++ b/gmyth/src/gmyth_backendinfo.h Thu Jun 14 18:19:52 2007 +0100
1.3 @@ -44,67 +44,64 @@
1.4 typedef struct _GMythBackendInfoClass GMythBackendInfoClass;
1.5
1.6 struct _GMythBackendInfoClass
1.7 - {
1.8 - GObjectClass parent_class;
1.9 +{
1.10 + GObjectClass parent_class;
1.11
1.12 - /* callbacks */
1.13 - /* no one for now */
1.14 - };
1.15 + /* callbacks */
1.16 + /* no one for now */
1.17 +};
1.18
1.19 struct _GMythBackendInfo
1.20 - {
1.21 - GObject parent;
1.22 +{
1.23 + GObject parent;
1.24
1.25 - /** The backend hostname or ip address. */
1.26 - gchar *hostname;
1.27 - /** The username to connect to the mysql server. */
1.28 - gchar *username;
1.29 - /** The password to connect to the mysql server. */
1.30 - gchar *password;
1.31 - /** The mythtv's mysql database name. */
1.32 - gchar *db_name;
1.33 - /** The backend port. */
1.34 - gint port;
1.35 - /** The backend status port for http connection */
1.36 - gint status_port;
1.37 - //gchar *path;
1.38 + /** The backend hostname or ip address. */
1.39 + gchar *hostname;
1.40 + /** The username to connect to the mysql server. */
1.41 + gchar *username;
1.42 + /** The password to connect to the mysql server. */
1.43 + gchar *password;
1.44 + /** The mythtv's mysql database name. */
1.45 + gchar *db_name;
1.46 + /** The backend port. */
1.47 + gint port;
1.48 + /** The backend status port for http connection */
1.49 + gint status_port;
1.50 + //gchar *path;
1.51
1.52 - //GMythURI* uri;
1.53 - };
1.54 + //GMythURI* uri;
1.55 +};
1.56
1.57
1.58 -GType gmyth_backend_info_get_type ( void );
1.59 -GMythBackendInfo *gmyth_backend_info_new ( void );
1.60 -GMythBackendInfo *gmyth_backend_info_new_full ( const gchar * hostname,
1.61 - const gchar * username,
1.62 - const gchar * password,
1.63 - const gchar * db_name,
1.64 - gint port );
1.65 -GMythBackendInfo *gmyth_backend_info_new_with_uri ( const gchar * uri_str );
1.66 -void gmyth_backend_info_set_hostname ( GMythBackendInfo * backend_info,
1.67 - const gchar * hostname );
1.68 -void gmyth_backend_info_set_username ( GMythBackendInfo * backend_info,
1.69 - const gchar * username );
1.70 -void gmyth_backend_info_set_password ( GMythBackendInfo * backend_info,
1.71 - const gchar * password );
1.72 -void gmyth_backend_info_set_db_name ( GMythBackendInfo * backend_info,
1.73 - const gchar * db_name );
1.74 -void gmyth_backend_info_set_port ( GMythBackendInfo * backend_info, gint port );
1.75 -void gmyth_backend_info_set_status_port ( GMythBackendInfo * backend_info,
1.76 - gint port );
1.77 +GType gmyth_backend_info_get_type(void);
1.78 +GMythBackendInfo *gmyth_backend_info_new(void);
1.79 +GMythBackendInfo *gmyth_backend_info_new_full(const gchar * hostname,
1.80 + const gchar * username,
1.81 + const gchar * password,
1.82 + const gchar * db_name,
1.83 + gint port);
1.84 +GMythBackendInfo *gmyth_backend_info_new_with_uri(const gchar * uri_str);
1.85 +void gmyth_backend_info_set_hostname(GMythBackendInfo * backend_info,
1.86 + const gchar * hostname);
1.87 +void gmyth_backend_info_set_username(GMythBackendInfo * backend_info,
1.88 + const gchar * username);
1.89 +void gmyth_backend_info_set_password(GMythBackendInfo * backend_info,
1.90 + const gchar * password);
1.91 +void gmyth_backend_info_set_db_name(GMythBackendInfo * backend_info,
1.92 + const gchar * db_name);
1.93 +void gmyth_backend_info_set_port(GMythBackendInfo * backend_info, gint port);
1.94 +void gmyth_backend_info_set_status_port(GMythBackendInfo * backend_info,
1.95 + gint port);
1.96
1.97 -const gchar *gmyth_backend_info_get_hostname ( GMythBackendInfo *
1.98 - backend_info );
1.99 -const gchar *gmyth_backend_info_get_username ( GMythBackendInfo *
1.100 - backend_info );
1.101 -const gchar *gmyth_backend_info_get_password ( GMythBackendInfo *
1.102 - backend_info );
1.103 -const gchar *gmyth_backend_info_get_db_name ( GMythBackendInfo * backend_info );
1.104 -gint gmyth_backend_info_get_port ( GMythBackendInfo * backend_info );
1.105 +const gchar *gmyth_backend_info_get_hostname(GMythBackendInfo * backend_info);
1.106 +const gchar *gmyth_backend_info_get_username(GMythBackendInfo * backend_info);
1.107 +const gchar *gmyth_backend_info_get_password(GMythBackendInfo * backend_info);
1.108 +const gchar *gmyth_backend_info_get_db_name(GMythBackendInfo * backend_info);
1.109 +gint gmyth_backend_info_get_port(GMythBackendInfo * backend_info);
1.110
1.111 -GMythURI *gmyth_backend_info_get_uri ( GMythBackendInfo * backend_info );
1.112 +GMythURI *gmyth_backend_info_get_uri(GMythBackendInfo * backend_info);
1.113
1.114 -gboolean gmyth_backend_info_is_local_file ( GMythBackendInfo * backend_info );
1.115 +gboolean gmyth_backend_info_is_local_file(GMythBackendInfo * backend_info);
1.116
1.117 G_END_DECLS
1.118 #endif /* __GMYTH_BACKEND_INFO_H__ */