コード例 #1
0
ファイル: flom_handle.c プロジェクト: 3manuek/flom
void flom_handle_set_discovery_timeout(flom_handle_t *handle, int value)
{
    FLOM_TRACE(("flom_handle_set_discovery_timeout: "
                "old value=%d, new value=%d\n",
                flom_config_get_discovery_timeout(handle->config), value));
    flom_config_set_discovery_timeout(handle->config, (gint)value);
}
コード例 #2
0
ファイル: flom_handle.c プロジェクト: tiian/flom
int flom_handle_set_discovery_timeout(flom_handle_t *handle, int value)
{
    FLOM_TRACE(("flom_handle_set_discovery_timeout: "
                "old value=%d, new value=%d\n",
                flom_config_get_discovery_timeout(handle->config), value));
    switch (handle->state) {
        case FLOM_HANDLE_STATE_INIT:
        case FLOM_HANDLE_STATE_DISCONNECTED:
            flom_config_set_discovery_timeout(handle->config, (gint)value);
            break;
        default:
            FLOM_TRACE(("flom_handle_set_discovery_timeout: state %d " \
                        "is not compatible with set operation\n",
                        handle->state));
            return FLOM_RC_API_IMMUTABLE_HANDLE;
    } /* switch (handle->state) */
    return FLOM_RC_OK;
}
コード例 #3
0
ファイル: flom_handle.c プロジェクト: tiian/flom
int flom_handle_get_discovery_timeout(const flom_handle_t *handle)
{
    FLOM_TRACE(("flom_handle_get_discovery_timeout: value=%d\n",
                flom_config_get_discovery_timeout(handle->config)));
    return (int)flom_config_get_discovery_timeout(handle->config);
}