diff options
| author | Damien Laniel <dlaniel@entrouvert.com> | 2007-07-09 09:16:36 +0000 |
|---|---|---|
| committer | Damien Laniel <dlaniel@entrouvert.com> | 2007-07-09 09:16:36 +0000 |
| commit | 3940aaa707ab4f10abff6edfb11d60ad94dbda13 (patch) | |
| tree | 5544c6141b89e92e161870ebdbe366c44e016055 | |
| parent | 68583058a5be10adc23730322889f076dbd1009b (diff) | |
| download | lasso-3940aaa707ab4f10abff6edfb11d60ad94dbda13.tar.gz lasso-3940aaa707ab4f10abff6edfb11d60ad94dbda13.tar.xz lasso-3940aaa707ab4f10abff6edfb11d60ad94dbda13.zip | |
_new function have no parameters and added some _new_full function instead
| -rw-r--r-- | lasso/xml/id-wsf-2.0/disco_endpoint_context.c | 9 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/disco_endpoint_context.h | 6 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/disco_service_context.c | 9 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/disco_service_context.h | 6 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/disco_svc_metadata.c | 6 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/soap_binding_framework.c | 15 | ||||
| -rw-r--r-- | lasso/xml/id-wsf-2.0/soap_binding_framework.h | 4 |
7 files changed, 41 insertions, 14 deletions
diff --git a/lasso/xml/id-wsf-2.0/disco_endpoint_context.c b/lasso/xml/id-wsf-2.0/disco_endpoint_context.c index 7ebb7428..30636b71 100644 --- a/lasso/xml/id-wsf-2.0/disco_endpoint_context.c +++ b/lasso/xml/id-wsf-2.0/disco_endpoint_context.c @@ -109,7 +109,13 @@ lasso_idwsf2_disco_endpoint_context_get_type() } LassoIdWsf2DiscoEndpointContext* -lasso_idwsf2_disco_endpoint_context_new(const gchar *address) +lasso_idwsf2_disco_endpoint_context_new() +{ + return g_object_new(LASSO_TYPE_IDWSF2_DISCO_ENDPOINT_CONTEXT, NULL); +} + +LassoIdWsf2DiscoEndpointContext* +lasso_idwsf2_disco_endpoint_context_new_full(const gchar *address) { LassoIdWsf2DiscoEndpointContext *context; @@ -120,3 +126,4 @@ lasso_idwsf2_disco_endpoint_context_new(const gchar *address) return context; } + diff --git a/lasso/xml/id-wsf-2.0/disco_endpoint_context.h b/lasso/xml/id-wsf-2.0/disco_endpoint_context.h index f6a61ef7..195deed7 100644 --- a/lasso/xml/id-wsf-2.0/disco_endpoint_context.h +++ b/lasso/xml/id-wsf-2.0/disco_endpoint_context.h @@ -66,8 +66,10 @@ struct _LassoIdWsf2DiscoEndpointContextClass { LASSO_EXPORT GType lasso_idwsf2_disco_endpoint_context_get_type(void); -LASSO_EXPORT LassoIdWsf2DiscoEndpointContext* lasso_idwsf2_disco_endpoint_context_new( - const gchar *address); +LASSO_EXPORT LassoIdWsf2DiscoEndpointContext* lasso_idwsf2_disco_endpoint_context_new(); + +LASSO_EXPORT LassoIdWsf2DiscoEndpointContext* lasso_idwsf2_disco_endpoint_context_new_full( + const gchar *address); #ifdef __cplusplus } diff --git a/lasso/xml/id-wsf-2.0/disco_service_context.c b/lasso/xml/id-wsf-2.0/disco_service_context.c index ded0c26f..c1a24797 100644 --- a/lasso/xml/id-wsf-2.0/disco_service_context.c +++ b/lasso/xml/id-wsf-2.0/disco_service_context.c @@ -102,7 +102,13 @@ lasso_idwsf2_disco_service_context_get_type() } LassoIdWsf2DiscoServiceContext* -lasso_idwsf2_disco_service_context_new(const gchar *serviceType, +lasso_idwsf2_disco_service_context_new() +{ + return g_object_new(LASSO_TYPE_IDWSF2_DISCO_SERVICE_CONTEXT, NULL); +} + +LassoIdWsf2DiscoServiceContext* +lasso_idwsf2_disco_service_context_new_full(const gchar *serviceType, LassoIdWsf2DiscoEndpointContext *endpointContext) { LassoIdWsf2DiscoServiceContext *context; @@ -114,3 +120,4 @@ lasso_idwsf2_disco_service_context_new(const gchar *serviceType, return context; } + diff --git a/lasso/xml/id-wsf-2.0/disco_service_context.h b/lasso/xml/id-wsf-2.0/disco_service_context.h index b55bd91b..42283a52 100644 --- a/lasso/xml/id-wsf-2.0/disco_service_context.h +++ b/lasso/xml/id-wsf-2.0/disco_service_context.h @@ -66,8 +66,10 @@ struct _LassoIdWsf2DiscoServiceContextClass { LASSO_EXPORT GType lasso_idwsf2_disco_service_context_get_type(void); -LASSO_EXPORT LassoIdWsf2DiscoServiceContext* lasso_idwsf2_disco_service_context_new( - const gchar *serviceType, LassoIdWsf2DiscoEndpointContext *endpointContext); +LASSO_EXPORT LassoIdWsf2DiscoServiceContext* lasso_idwsf2_disco_service_context_new(); + +LASSO_EXPORT LassoIdWsf2DiscoServiceContext* lasso_idwsf2_disco_service_context_new_full( + const gchar *serviceType, LassoIdWsf2DiscoEndpointContext *endpointContext); #ifdef __cplusplus } diff --git a/lasso/xml/id-wsf-2.0/disco_svc_metadata.c b/lasso/xml/id-wsf-2.0/disco_svc_metadata.c index 2ea5209f..6c61f287 100644 --- a/lasso/xml/id-wsf-2.0/disco_svc_metadata.c +++ b/lasso/xml/id-wsf-2.0/disco_svc_metadata.c @@ -115,7 +115,7 @@ lasso_idwsf2_disco_svc_metadata_new() LassoIdWsf2DiscoSvcMetadata* lasso_idwsf2_disco_svc_metadata_new_full(const gchar *service_type, const gchar *abstract, - const gchar *provider_id, const gchar *soap_endpoint) + const gchar *provider_id, const gchar *soap_endpoint) { LassoIdWsf2DiscoSvcMetadata *metadata; LassoIdWsf2DiscoEndpointContext *endpoint_context; @@ -125,8 +125,8 @@ lasso_idwsf2_disco_svc_metadata_new_full(const gchar *service_type, const gchar metadata->Abstract = g_strdup(abstract); metadata->ProviderID = g_strdup(provider_id); - endpoint_context = lasso_idwsf2_disco_endpoint_context_new(soap_endpoint); - metadata->ServiceContext = lasso_idwsf2_disco_service_context_new(service_type, + endpoint_context = lasso_idwsf2_disco_endpoint_context_new_full(soap_endpoint); + metadata->ServiceContext = lasso_idwsf2_disco_service_context_new_full(service_type, endpoint_context); return metadata; diff --git a/lasso/xml/id-wsf-2.0/soap_binding_framework.c b/lasso/xml/id-wsf-2.0/soap_binding_framework.c index 50e8bc51..6c1088eb 100644 --- a/lasso/xml/id-wsf-2.0/soap_binding_framework.c +++ b/lasso/xml/id-wsf-2.0/soap_binding_framework.c @@ -93,13 +93,20 @@ lasso_soap_binding_framework_get_type() } LassoSoapBindingFramework* -lasso_soap_binding_framework_new(gchar *version) +lasso_soap_binding_framework_new() +{ + return g_object_new(LASSO_TYPE_SOAP_BINDING_FRAMEWORK, NULL); +} + +LassoSoapBindingFramework* +lasso_soap_binding_framework_new_full(gchar *version) { LassoSoapBindingFramework *framework; - + framework = g_object_new(LASSO_TYPE_SOAP_BINDING_FRAMEWORK, NULL); - + framework->Version = g_strdup(version); - + return framework; } + diff --git a/lasso/xml/id-wsf-2.0/soap_binding_framework.h b/lasso/xml/id-wsf-2.0/soap_binding_framework.h index d65ab607..7d8e5878 100644 --- a/lasso/xml/id-wsf-2.0/soap_binding_framework.h +++ b/lasso/xml/id-wsf-2.0/soap_binding_framework.h @@ -58,7 +58,9 @@ struct _LassoSoapBindingFrameworkClass { LASSO_EXPORT GType lasso_soap_binding_framework_get_type(void); -LASSO_EXPORT LassoSoapBindingFramework* lasso_soap_binding_framework_new(gchar *version); +LASSO_EXPORT LassoSoapBindingFramework* lasso_soap_binding_framework_new(); + +LASSO_EXPORT LassoSoapBindingFramework* lasso_soap_binding_framework_new_full(gchar *version); #ifdef __cplusplus } |
