Exemplo n.º 1
0
static void
arv_gc_struct_entry_node_set_integer_value (ArvGcInteger *gc_integer, gint64 value, GError **error)
{
    ArvGcStructEntryNode *struct_entry = ARV_GC_STRUCT_ENTRY_NODE (gc_integer);
    ArvDomNode *struct_register;
    GError *local_error = NULL;
    guint lsb;
    guint msb;

    struct_register = arv_dom_node_get_parent_node (ARV_DOM_NODE (gc_integer));
    if (!ARV_IS_GC_REGISTER_NODE (struct_register))
        return;

    lsb = _get_lsb (struct_entry, &local_error);

    if (local_error != NULL) {
        g_propagate_error (error, local_error);
        return;
    }

    msb = _get_msb (struct_entry, &local_error);

    if (local_error != NULL) {
        g_propagate_error (error, local_error);
        return;
    }

    arv_gc_register_node_set_masked_integer_value (ARV_GC_REGISTER_NODE (struct_register), lsb, msb, value, &local_error);

    if (local_error != NULL) {
        g_propagate_error (error, local_error);
        return;
    }
}
Exemplo n.º 2
0
static void
arv_gc_struct_entry_node_set_integer_value (ArvGcInteger *gc_integer, gint64 value)
{
	ArvGcStructEntryNode *struct_entry = ARV_GC_STRUCT_ENTRY_NODE (gc_integer);
	ArvDomNode *struct_register;
	guint lsb;
	guint msb;

	struct_register = arv_dom_node_get_parent_node (ARV_DOM_NODE (gc_integer));
	if (!ARV_IS_GC_REGISTER_NODE (struct_register))
		return;

	lsb = _get_lsb (struct_entry);
	msb = _get_msb (struct_entry);

	arv_gc_register_node_set_masked_integer_value (ARV_GC_REGISTER_NODE (struct_register), lsb, msb, value);
}