- for( i = 0 ; i < category_type ; i++ )
- {
- if( (*configure_info)->info[i] )
- {
- g_print( "[ConfigureInfo] : Category [%d]\n", i );
- for( j = 0 ; j < (*configure_info)->info[i]->count ; j++ )
- {
- if( _mmcamcorder_conf_get_value_type(handle, (*configure_info)->type, i, ((type_int*)((*configure_info)->info[i]->detail_info[j]))->name, &type ) )
- {
- switch( type )
- {
- case CONFIGURE_VALUE_INT:
- temp_int = (type_int*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : INT - Name[%s],Value [%d]\n", temp_int->name, temp_int->value );
- break;
- case CONFIGURE_VALUE_INT_RANGE:
- temp_int_range = (type_int_range*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : INT_RANGE - Name[%s],Value [%d]~[%d], default [%d]\n",
- temp_int_range->name, temp_int_range->min, temp_int_range->max, temp_int_range->default_value );
- break;
- case CONFIGURE_VALUE_INT_ARRAY:
- temp_int_array = (type_int_array*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : INT_ARRAY - Name[%s], default [%d]\n - ",
- temp_int_array->name, temp_int_array->default_value );
- for( k = 0 ; k < temp_int_array->count ; k++ )
- {
- g_print( "[%d] ", temp_int_array->value[k] );
- }
- g_print( "\n" );
- break;
- case CONFIGURE_VALUE_INT_PAIR_ARRAY:
- temp_int_pair_array = (type_int_pair_array*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : INT_PAIR_ARRAY - Name[%s], default [%d][%d]\n - ",
- temp_int_pair_array->name, temp_int_pair_array->default_value[0], temp_int_pair_array->default_value[0] );
- for( k = 0 ; k < temp_int_pair_array->count ; k++ )
- {
- g_print( "[%d,%d] ", temp_int_pair_array->value[0][k], temp_int_pair_array->value[1][k] );
- }
- g_print( "\n" );
- break;
- case CONFIGURE_VALUE_STRING:
- temp_string = (type_string*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : STRING - Name[%s],Value[%s]\n", temp_string->name, temp_string->value );
- break;
- case CONFIGURE_VALUE_ELEMENT:
- temp_element = (type_element*)((*configure_info)->info[i]->detail_info[j]);
- g_print( "[ConfigureInfo] : Element - Name[%s],Element_Name[%s]\n", temp_element->name, temp_element->element_name );
- for( k = 0 ; k < temp_element->count_int ; k++ )
- {
- g_print( " - INT[%d] Name[%s],Value[%d]\n", k, temp_element->value_int[k]->name, temp_element->value_int[k]->value );
- }
- for( k = 0 ; k < temp_element->count_string ; k++ )
- {
- g_print( " - STRING[%d] Name[%s],Value[%s]\n", k, temp_element->value_string[k]->name, temp_element->value_string[k]->value );
- }
- break;
- default:
- g_print( "[ConfigureInfo] : Not matched value type... So can not print data... check it... Name[%s],type[%d]\n", ((type_int*)((*configure_info)->info[i]->detail_info[j]))->name, type );
- break;
+ for (i = 0 ; i < category_type ; i++) {
+
+ if ((*configure_info)->info[i]) {
+ g_print("[ConfigureInfo] : Category [%d]\n", i);
+
+ for (j = 0 ; j < (*configure_info)->info[i]->count ; j++) {
+
+ if (_mmcamcorder_conf_get_value_type(handle, (*configure_info)->type, i, ((type_int*)((*configure_info)->info[i]->detail_info[j]))->name, &type)) {
+ switch (type) {
+ case CONFIGURE_VALUE_INT:
+ temp_int = (type_int*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : INT - Name[%s],Value [%d]\n", temp_int->name, temp_int->value);
+ break;
+ case CONFIGURE_VALUE_INT_RANGE:
+ temp_int_range = (type_int_range*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : INT_RANGE - Name[%s],Value [%d]~[%d], default [%d]\n",
+ temp_int_range->name, temp_int_range->min, temp_int_range->max, temp_int_range->default_value);
+ break;
+ case CONFIGURE_VALUE_INT_ARRAY:
+ temp_int_array = (type_int_array*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : INT_ARRAY - Name[%s], default [%d]\n - ",
+ temp_int_array->name, temp_int_array->default_value);
+
+ for (k = 0 ; k < temp_int_array->count ; k++)
+ g_print("[%d] ", temp_int_array->value[k]);
+
+ g_print("\n");
+ break;
+ case CONFIGURE_VALUE_INT_PAIR_ARRAY:
+ temp_int_pair_array = (type_int_pair_array*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : INT_PAIR_ARRAY - Name[%s], default [%d][%d]\n - ",
+ temp_int_pair_array->name, temp_int_pair_array->default_value[0], temp_int_pair_array->default_value[0]);
+
+ for (k = 0 ; k < temp_int_pair_array->count ; k++)
+ g_print("[%d,%d] ", temp_int_pair_array->value[0][k], temp_int_pair_array->value[1][k]);
+
+ g_print("\n");
+ break;
+ case CONFIGURE_VALUE_STRING:
+ temp_string = (type_string*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : STRING - Name[%s],Value[%s]\n", temp_string->name, temp_string->value);
+ break;
+ case CONFIGURE_VALUE_ELEMENT:
+ temp_element = (type_element*)((*configure_info)->info[i]->detail_info[j]);
+ g_print("[ConfigureInfo] : Element - Name[%s],Element_Name[%s]\n", temp_element->name, temp_element->element_name);
+
+ for (k = 0 ; k < temp_element->count_int ; k++)
+ g_print(" - INT[%d] Name[%s],Value[%d]\n", k, temp_element->value_int[k]->name, temp_element->value_int[k]->value);
+
+ for (k = 0 ; k < temp_element->count_string ; k++)
+ g_print(" - STRING[%d] Name[%s],Value[%s]\n", k, temp_element->value_string[k]->name, temp_element->value_string[k]->value);
+
+ break;
+ default:
+ g_print("[ConfigureInfo] : Not matched value type... So can not print data... check it... Name[%s],type[%d]\n", ((type_int*)((*configure_info)->info[i]->detail_info[j]))->name, type);
+ break;