config: Use object config structure directly instead of abstract type

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
This commit is contained in:
Paul Kocialkowski
2018-04-23 10:13:05 +02:00
parent 0bd492f0d3
commit 36b7bba14f
5 changed files with 12 additions and 14 deletions
+2 -4
View File
@@ -30,7 +30,7 @@
#include "object_heap.h"
#define CONFIG(id) ((object_config_p) object_heap_lookup(&driver_data->config_heap, id))
#define CONFIG(id) ((struct object_config *) object_heap_lookup(&driver_data->config_heap, id))
#define CONFIG_ID_OFFSET 0x01000000
struct object_config {
@@ -41,8 +41,6 @@ struct object_config {
int attrib_count;
};
typedef struct object_config *object_config_p;
VAStatus sunxi_cedrus_QueryConfigProfiles(VADriverContextP ctx,
VAProfile *profile_list, int *num_profiles);
@@ -54,7 +52,7 @@ VAStatus sunxi_cedrus_GetConfigAttributes(VADriverContextP ctx,
VAProfile profile, VAEntrypoint entrypoint,
VAConfigAttrib *attrib_list, int num_attribs);
VAStatus sunxi_cedrus_update_attribute(object_config_p obj_config,
VAStatus sunxi_cedrus_update_attribute(struct object_config *obj_config,
VAConfigAttrib *attrib);
VAStatus sunxi_cedrus_CreateConfig(VADriverContextP ctx, VAProfile profile,