spa: don't use typedef for struct and enum

This commit is contained in:
Wim Taymans 2017-05-25 13:28:15 +02:00
parent 83964cec87
commit 11f23a3ffa
163 changed files with 6510 additions and 8264 deletions

View file

@ -85,7 +85,7 @@ static const SpaPropInfo prop_info[] =
{ 0, },
};
static SpaResult
static int
spa_libva_enc_node_get_props (SpaHandle *handle,
SpaProps **props)
{
@ -100,13 +100,13 @@ spa_libva_enc_node_get_props (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_set_props (SpaHandle *handle,
const SpaProps *props)
{
SpaLibvaEnc *this = (SpaLibvaEnc *) handle;
SpaLibvaEncProps *p = &this->props[1];
SpaResult res;
int res;
if (handle == NULL)
return SPA_RESULT_INVALID_ARGUMENTS;
@ -121,7 +121,7 @@ spa_libva_enc_node_set_props (SpaHandle *handle,
return res;
}
static SpaResult
static int
spa_libva_enc_node_send_command (SpaHandle *handle,
SpaCommand *command)
{
@ -171,7 +171,7 @@ spa_libva_enc_node_send_command (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_set_event_callback (SpaHandle *handle,
SpaEventCallback event,
void *user_data)
@ -187,7 +187,7 @@ spa_libva_enc_node_set_event_callback (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_get_n_ports (SpaHandle *handle,
uint32_t *n_input_ports,
uint32_t *max_input_ports,
@ -209,7 +209,7 @@ spa_libva_enc_node_get_n_ports (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_get_port_ids (SpaHandle *handle,
uint32_t n_input_ports,
uint32_t *input_ids,
@ -228,7 +228,7 @@ spa_libva_enc_node_get_port_ids (SpaHandle *handle,
}
static SpaResult
static int
spa_libva_enc_node_add_port (SpaHandle *handle,
SpaDirection direction,
uint32_t *port_id)
@ -236,14 +236,14 @@ spa_libva_enc_node_add_port (SpaHandle *handle,
return SPA_RESULT_NOT_IMPLEMENTED;
}
static SpaResult
static int
spa_libva_enc_node_remove_port (SpaHandle *handle,
uint32_t port_id)
{
return SPA_RESULT_NOT_IMPLEMENTED;
}
static SpaResult
static int
spa_libva_enc_node_port_enum_formats (SpaHandle *handle,
uint32_t port_id,
uint32_t index,
@ -272,7 +272,7 @@ spa_libva_enc_node_port_enum_formats (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_set_format (SpaHandle *handle,
uint32_t port_id,
bool test_only,
@ -280,7 +280,7 @@ spa_libva_enc_node_port_set_format (SpaHandle *handle,
{
SpaLibvaEnc *this = (SpaLibvaEnc *) handle;
SpaLibvaState *state;
SpaResult res;
int res;
SpaFormat *f, *tf;
size_t fs;
@ -318,7 +318,7 @@ spa_libva_enc_node_port_set_format (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_get_format (SpaHandle *handle,
uint32_t port_id,
const SpaFormat **format)
@ -342,7 +342,7 @@ spa_libva_enc_node_port_get_format (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_get_info (SpaHandle *handle,
uint32_t port_id,
const SpaPortInfo **info)
@ -360,7 +360,7 @@ spa_libva_enc_node_port_get_info (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_get_props (SpaHandle *handle,
uint32_t port_id,
SpaProps **props)
@ -368,7 +368,7 @@ spa_libva_enc_node_port_get_props (SpaHandle *handle,
return SPA_RESULT_NOT_IMPLEMENTED;
}
static SpaResult
static int
spa_libva_enc_node_port_set_props (SpaHandle *handle,
uint32_t port_id,
const SpaProps *props)
@ -376,7 +376,7 @@ spa_libva_enc_node_port_set_props (SpaHandle *handle,
return SPA_RESULT_NOT_IMPLEMENTED;
}
static SpaResult
static int
spa_libva_enc_node_port_get_status (SpaHandle *handle,
uint32_t port_id,
const SpaPortStatus **status)
@ -394,7 +394,7 @@ spa_libva_enc_node_port_get_status (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_use_buffers (SpaHandle *handle,
uint32_t port_id,
SpaBuffer **buffers,
@ -409,7 +409,7 @@ spa_libva_enc_node_port_use_buffers (SpaHandle *handle,
return SPA_RESULT_OK;
}
static SpaResult
static int
spa_libva_enc_node_port_alloc_buffers (SpaHandle *handle,
uint32_t port_id,
SpaAllocParam **params,
@ -421,7 +421,7 @@ spa_libva_enc_node_port_alloc_buffers (SpaHandle *handle,
}
static SpaResult
static int
spa_libva_enc_node_port_push_input (SpaHandle *handle,
uint32_t n_info,
SpaInputInfo *info)
@ -429,7 +429,7 @@ spa_libva_enc_node_port_push_input (SpaHandle *handle,
return SPA_RESULT_INVALID_PORT;
}
static SpaResult
static int
spa_libva_enc_node_port_pull_output (SpaHandle *handle,
uint32_t n_info,
SpaOutputInfo *info)
@ -487,7 +487,7 @@ static const SpaNode libva_enc_node = {
spa_libva_enc_node_port_pull_output,
};
static SpaResult
static int
spa_libva_enc_get_interface (SpaHandle *handle,
uint32_t interface_id,
const void **interface)