Blame plugins/rfkill/rfkill-glib.h

Packit 9ca0cf
/*
Packit 9ca0cf
 *
Packit 9ca0cf
 *  gnome-bluetooth - Bluetooth integration for GNOME
Packit 9ca0cf
 *
Packit 9ca0cf
 *  Copyright (C) 2012  Bastien Nocera <hadess@hadess.net>
Packit 9ca0cf
 *  Copyright © 2017  Endless Mobile, Inc.
Packit 9ca0cf
 *
Packit 9ca0cf
 *  This program is free software; you can redistribute it and/or modify
Packit 9ca0cf
 *  it under the terms of the GNU General Public License as published by
Packit 9ca0cf
 *  the Free Software Foundation; either version 2 of the License, or
Packit 9ca0cf
 *  (at your option) any later version.
Packit 9ca0cf
 *
Packit 9ca0cf
 *  This program is distributed in the hope that it will be useful,
Packit 9ca0cf
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 9ca0cf
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 9ca0cf
 *  GNU General Public License for more details.
Packit 9ca0cf
 *
Packit 9ca0cf
 *  You should have received a copy of the GNU General Public License
Packit 9ca0cf
 *  along with this program; if not, write to the Free Software
Packit 9ca0cf
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
Packit 9ca0cf
 *
Packit 9ca0cf
 */
Packit 9ca0cf
Packit 9ca0cf
#ifndef __CC_RFKILL_GLIB_H
Packit 9ca0cf
#define __CC_RFKILL_GLIB_H
Packit 9ca0cf
Packit 9ca0cf
#include <glib-object.h>
Packit 9ca0cf
#include <gio/gio.h>
Packit 9ca0cf
#include "rfkill.h"
Packit 9ca0cf
Packit 9ca0cf
G_BEGIN_DECLS
Packit 9ca0cf
Packit 9ca0cf
#define CC_RFKILL_TYPE_GLIB cc_rfkill_glib_get_type ()
Packit 9ca0cf
G_DECLARE_FINAL_TYPE (CcRfkillGlib, cc_rfkill_glib, CC_RFKILL, GLIB, GObject)
Packit 9ca0cf
Packit 9ca0cf
CcRfkillGlib *cc_rfkill_glib_new               (void);
Packit 9ca0cf
gboolean      cc_rfkill_glib_open              (CcRfkillGlib  *rfkill,
Packit 9ca0cf
                                                GError       **error);
Packit 9ca0cf
Packit 9ca0cf
gboolean      cc_rfkill_glib_get_rfkill_input_inhibited (CcRfkillGlib        *rfkill);
Packit 9ca0cf
void          cc_rfkill_glib_set_rfkill_input_inhibited (CcRfkillGlib        *rfkill,
Packit 9ca0cf
							 gboolean             noinput);
Packit 9ca0cf
Packit 9ca0cf
void          cc_rfkill_glib_send_change_all_event        (CcRfkillGlib        *rfkill,
Packit 9ca0cf
							   guint                rfkill_type,
Packit 9ca0cf
							   gboolean             enable,
Packit 9ca0cf
							   GCancellable        *cancellable,
Packit 9ca0cf
							   GAsyncReadyCallback  callback,
Packit 9ca0cf
							   gpointer             user_data);
Packit 9ca0cf
Packit 9ca0cf
gboolean      cc_rfkill_glib_send_change_all_event_finish (CcRfkillGlib        *rfkill,
Packit 9ca0cf
							   GAsyncResult        *res,
Packit 9ca0cf
							   GError             **error);
Packit 9ca0cf
Packit 9ca0cf
G_END_DECLS
Packit 9ca0cf
Packit 9ca0cf
#endif /* __CC_RFKILL_GLIB_H */