static void gkm_secret_object_set_property (GObject *obj, guint prop_id, const GValue *value, GParamSpec *pspec) { GkmSecretObjectClass *klass = GKM_SECRET_OBJECT_GET_CLASS (obj); GkmSecretObject *self = GKM_SECRET_OBJECT (obj); const gchar *identifier; switch (prop_id) { case PROP_LABEL: gkm_secret_object_set_label (self, g_value_get_string (value)); break; case PROP_IDENTIFIER: g_return_if_fail (!self->pv->identifier); identifier = g_value_get_string (value); g_return_if_fail (identifier); self->pv->identifier = register_identifier (klass, identifier); break; case PROP_CREATED: gkm_secret_object_set_created (self, g_value_get_long (value)); break; case PROP_MODIFIED: gkm_secret_object_set_modified (self, g_value_get_long (value)); break; default: G_OBJECT_WARN_INVALID_PROPERTY_ID (obj, prop_id, pspec); break; } }
wpl_file_open(const char *name, ios_base::openmode mode) : mode(mode), wpl_function(wpl_type_global_bool, name, WPL_VARIABLE_ACCESS_PUBLIC) { wpl_variable_holder sql("filename", new wpl_value_string(), WPL_VARIABLE_ACCESS_PRIVATE); register_identifier(&sql); }
void scope_add_parameter_list(parameter_list_t * list) { identifier_list_t * idents; if(list != NULL) { for(idents = list->idents; idents != NULL; idents = idents->next) { register_identifier(idents->identifier, true); } scope_add_parameter_list(list->next); } }
wpl_type_file::wpl_type_file() : wpl_struct(wpl_typename_file, true) { wpl_variable_holder this_var("this", new wpl_value_file(), WPL_VARIABLE_ACCESS_PRIVATE); register_identifier(&this_var); register_identifier(new wpl_file_open("open", ios_base::in)); register_identifier(new wpl_file_open("open_ro", ios_base::in)); register_identifier(new wpl_file_open("open_rw", ios_base::in|ios_base::out)); register_identifier(new wpl_file_open("open_truncate", ios_base::in|ios_base::out|ios_base::trunc)); register_identifier(new wpl_file_close()); register_identifier(new wpl_file_error()); register_identifier(new wpl_file_update()); register_identifier(new wpl_file_flush()); register_identifier(new wpl_file_begin()); register_identifier(new wpl_file_end()); }
wpl_file_update() : wpl_function(wpl_type_global_bool, "update", WPL_VARIABLE_ACCESS_PUBLIC) { wpl_variable_holder line("line", new wpl_value_line(), WPL_VARIABLE_ACCESS_PRIVATE); register_identifier(&line); }