axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ishan De Silva <>
Subject axis2_svc_client_get_options returns a "const" ?
Date Wed, 04 Oct 2006 09:19:45 GMT

The get_option function of the service client returns a const 
axis2_options_t pointer.

const axis2_options_t *AXIS2_CALL
    const axis2_svc_client_t *svc_client,
    const axis2_env_t *env);

This makes it difficult to use it in the following manner:

const axis2_options_t *options = NULL;
const axis2_char_t *old_action = NULL;
options = AXIS2_SVC_CLIENT_GET_OPTIONS (svc_client, env);
old_action = AXIS2_OPTIONS_GET_ACTION(options, env);
AXIS2_OPTIONS_SET_ACTION(options, env, "new action"); /* problem here 
because set_action modifies options */

Is the const modifier required in this function?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message