From: Darren S. <li...@yo...> - 2007-02-20 18:58:29
|
# HG changeset patch # User Darren Salt <li...@yo...> # Date 1171989323 0 # Node ID 3cc3db4e995d23b0bad1156638008b0dcb93009f # Parent c9f213bd5a16cd2eae79a44aa42249d5608f148d Constness & casting issue fixups. diff -r 3cc3db4e995d23b0bad1156638008b0dcb93009f -r c9f213bd5a16cd2eae79a44aa42249d5608f148d src/script_engine.c --- a/src/script_engine.c Tue Feb 20 16:35:23 2007 +0000 +++ b/src/script_engine.c Mon Feb 19 00:40:40 2007 +0000 @@ -1249,7 +1249,7 @@ void se_prop_create_bool (se_t *se, se_o se_prop_create (se, o, id, str, SE_TYPE_BOOL, 0, constant); } -static void se_prop_read_xine_id_int (se_prop_t *prop, se_prop_read_t *value) +static void se_prop_read_xine_id_int (const se_prop_t *prop, se_prop_read_t *value) { xine_cfg_entry_t entry; if (xine_config_lookup_entry (xine, (const char *) prop->data, &entry)) @@ -1258,7 +1258,7 @@ static void se_prop_read_xine_id_int (se value->i = 0; } -static void se_prop_read_xine_id_string (se_prop_t *prop, se_prop_read_t *value) +static void se_prop_read_xine_id_string (const se_prop_t *prop, se_prop_read_t *value) { xine_cfg_entry_t entry; if (xine_config_lookup_entry (xine, (const char *) prop->data, &entry)) @@ -1298,7 +1298,7 @@ void se_prop_create_xine_id (se_t *se, s } } -static void se_prop_read_xine_param (se_prop_t *prop, se_prop_read_t *value) +static void se_prop_read_xine_param (const se_prop_t *prop, se_prop_read_t *value) { value->i = xine_get_param (stream, prop->data); } diff -r 3cc3db4e995d23b0bad1156638008b0dcb93009f -r c9f213bd5a16cd2eae79a44aa42249d5608f148d src/script_engine.h --- a/src/script_engine.h Tue Feb 20 16:35:23 2007 +0000 +++ b/src/script_engine.h Mon Feb 19 00:40:40 2007 +0000 @@ -92,7 +92,7 @@ typedef union { } se_prop_read_t; struct se_prop_s; -typedef void (*se_prop_reader_t) (struct se_prop_s *, se_prop_read_t *); +typedef void (*se_prop_reader_t) (const struct se_prop_s *, se_prop_read_t *); struct se_prop_s { char *id; diff -r 3cc3db4e995d23b0bad1156638008b0dcb93009f -r c9f213bd5a16cd2eae79a44aa42249d5608f148d src/ui.c --- a/src/ui.c Tue Feb 20 16:35:23 2007 +0000 +++ b/src/ui.c Mon Feb 19 00:40:40 2007 +0000 @@ -550,7 +550,7 @@ static JSBool js_control_reset (JSContex static void ui_prop_get (const se_prop_t *prop, se_prop_read_t *value) { - const ui_property_t *ui = prop->data; + const ui_property_t *ui = (void *)prop->data; switch (ui->type) { case UI_PROP_BOOL: |