Back to index

libunity  5.92.0
unity-lens-merge-strategy.c
Go to the documentation of this file.
00001 /* unity-lens-merge-strategy.c generated by valac 0.17.2, the Vala compiler
00002  * generated from unity-lens-merge-strategy.vala, do not modify */
00003 
00004 /*
00005  * Copyright (C) 2012 Canonical, Ltd.
00006  *
00007  * This library is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU Lesser General Public License
00009  * version 3.0 as published by the Free Software Foundation.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU Lesser General Public License version 3.0 for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library. If not, see
00018  * <http://www.gnu.org/licenses/>.
00019  *
00020  * Authored by Mikkel Kamstrup Erlandsen <mikkel.kamstrup@canonical.com>
00021  *
00022  */
00023 
00024 #include <glib.h>
00025 #include <glib-object.h>
00026 #include "unity.h"
00027 #include <dee.h>
00028 
00029 
00030 
00031 
00032 
00033 
00042 DeeModelIter* unity_merge_strategy_merge_result (UnityMergeStrategy* self, DeeModel* target, GVariant** row, int row_length1) {
00043        g_return_val_if_fail (self != NULL, NULL);
00044        return UNITY_MERGE_STRATEGY_GET_INTERFACE (self)->merge_result (self, target, row, row_length1);
00045 }
00046 
00047 
00048 static void unity_merge_strategy_base_init (UnityMergeStrategyIface * iface) {
00049        static gboolean initialized = FALSE;
00050        if (!initialized) {
00051               initialized = TRUE;
00052        }
00053 }
00054 
00055 
00056 GType unity_merge_strategy_get_type (void) {
00057        static volatile gsize unity_merge_strategy_type_id__volatile = 0;
00058        if (g_once_init_enter (&unity_merge_strategy_type_id__volatile)) {
00059               static const GTypeInfo g_define_type_info = { sizeof (UnityMergeStrategyIface), (GBaseInitFunc) unity_merge_strategy_base_init, (GBaseFinalizeFunc) NULL, (GClassInitFunc) NULL, (GClassFinalizeFunc) NULL, NULL, 0, 0, (GInstanceInitFunc) NULL, NULL };
00060               GType unity_merge_strategy_type_id;
00061               unity_merge_strategy_type_id = g_type_register_static (G_TYPE_INTERFACE, "UnityMergeStrategy", &g_define_type_info, 0);
00062               g_type_interface_add_prerequisite (unity_merge_strategy_type_id, G_TYPE_OBJECT);
00063               g_once_init_leave (&unity_merge_strategy_type_id__volatile, unity_merge_strategy_type_id);
00064        }
00065        return unity_merge_strategy_type_id__volatile;
00066 }
00067 
00068 
00069