mirror of
https://github.com/Maks1mS/rg552-fancontrol-phosh-plugin.git
synced 2024-12-23 10:52:57 +03:00
40 lines
906 B
C
40 lines
906 B
C
|
/*
|
||
|
* Copyright (C) 2024
|
||
|
*
|
||
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
||
|
*
|
||
|
* Author: Maxim Slipenko <maxim@slipenko.com>
|
||
|
*/
|
||
|
|
||
|
#include "rg552-fancontrol-quick-setting.h"
|
||
|
#include "phosh-plugin.h"
|
||
|
|
||
|
#include <gio/gio.h>
|
||
|
#include <gtk/gtk.h>
|
||
|
|
||
|
char **g_io_phosh_plugin_rg552_fancontrol_quick_setting_query (void);
|
||
|
|
||
|
void
|
||
|
g_io_module_load (GIOModule *module)
|
||
|
{
|
||
|
g_type_module_use (G_TYPE_MODULE (module));
|
||
|
|
||
|
g_io_extension_point_implement (PHOSH_PLUGIN_EXTENSION_POINT_QUICK_SETTING_WIDGET,
|
||
|
PHOSH_TYPE_RG552_FANCONTROL_QUICK_SETTING,
|
||
|
PLUGIN_NAME,
|
||
|
10);
|
||
|
}
|
||
|
|
||
|
void
|
||
|
g_io_module_unload (GIOModule *module)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
char **
|
||
|
g_io_phosh_plugin_rg552_fancontrol_quick_setting_query (void)
|
||
|
{
|
||
|
char *extension_points[] = {PHOSH_PLUGIN_EXTENSION_POINT_QUICK_SETTING_WIDGET, NULL};
|
||
|
|
||
|
return g_strdupv (extension_points);
|
||
|
}
|