X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=gtk%2Fsrc%2Fvalues.h;h=d28727fcb6bed2b2fb767391068ff4bbebd36266;hb=231aec2bae77c5cde86d8035d383b2da98f0e054;hp=d184a5f86a90bc404393a364c52218cdcf79ad37;hpb=30a4f5904882337afa5c7754bfce2a61cbee0002;p=handbrake-jp%2Fhandbrake-jp-git.git diff --git a/gtk/src/values.h b/gtk/src/values.h index d184a5f8..d28727fc 100644 --- a/gtk/src/values.h +++ b/gtk/src/values.h @@ -25,33 +25,17 @@ typedef struct gsize size; } ghb_rawdata_t; -typedef struct -{ - gint index; - gchar *option; - gchar *shortOpt; - gchar *svalue; - gint ivalue; -} ghb_combodata_t; - -GType ghb_combodata_get_type(void); -void ghb_value_set_combodata( - GValue *gval, - gint index, - const gchar *option, - const gchar *shortOpt, - const gchar *svalue, - gint ivalue); - GType ghb_rawdata_get_type(void); GType ghb_array_get_type(void); GType ghb_dict_get_type(void); GValue* ghb_array_get_nth(const GValue *array, gint ii); void ghb_array_insert(GValue *gval, guint ii, GValue *val); +void ghb_array_replace(GValue *gval, guint ii, GValue *val); void ghb_array_append(GValue *gval, GValue *val); void ghb_array_remove(GValue *gval, guint ii); gint ghb_array_len(const GValue *gval); +void ghb_array_copy(GValue *arr1, GValue *arr2, gint count); void ghb_value_free(GValue *gval); GValue* ghb_value_new(GType gtype); @@ -74,12 +58,6 @@ GValue* ghb_int64_value_new(gint64 ival); GValue* ghb_int_value_new(gint ival); GValue* ghb_double_value_new(gdouble dval); GValue* ghb_boolean_value_new(gboolean bval); -GValue* ghb_combo_value_new( - gint index, - const gchar *option, - const gchar *shortOpt, - const gchar *svalue, - gint ivalue); GValue* ghb_dict_value_new(void); GValue* ghb_array_value_new(guint size); void ghb_array_value_reset(GValue *gval, guint size); @@ -89,9 +67,11 @@ GValue* ghb_rawdata_value_new(ghb_rawdata_t *data); void ghb_dict_insert(GValue *gval, gchar *key, GValue *val); void ghb_dict_iter_init(GHashTableIter *iter, GValue *gval); -GValue* ghb_dict_lookup(GValue *gval, const gchar *key); +GValue* ghb_dict_lookup(const GValue *gval, const gchar *key); gboolean ghb_dict_remove(GValue *gval, const gchar *key); void ghb_register_transforms(void); +void debug_show_value(GValue *gval); +void debug_show_type(GType tp); #endif // _GHB_VALUES_H_