2021-03-02 03:31:19 -05:00
|
|
|
/*
|
|
|
|
* Copyright (C) 2019 Red Hat Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License as
|
|
|
|
* published by the Free Software Foundation; either version 2 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
* 02111-1307, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef META_CONTEXT_H
|
|
|
|
#define META_CONTEXT_H
|
|
|
|
|
|
|
|
#include <glib-object.h>
|
|
|
|
|
|
|
|
#include "meta/common.h"
|
2021-03-03 05:31:24 -05:00
|
|
|
#include "meta/meta-enums.h"
|
2021-03-03 09:12:19 -05:00
|
|
|
#include "meta/types.h"
|
2021-03-02 03:31:19 -05:00
|
|
|
|
|
|
|
#define META_TYPE_CONTEXT (meta_context_get_type ())
|
|
|
|
META_EXPORT
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (MetaContext, meta_context, META, CONTEXT, GObject)
|
|
|
|
|
2021-03-03 05:31:24 -05:00
|
|
|
META_EXPORT
|
|
|
|
MetaContext * meta_create_context (const char *name);
|
|
|
|
|
2021-03-02 05:48:22 -05:00
|
|
|
META_EXPORT
|
2021-03-02 10:46:05 -05:00
|
|
|
void meta_context_add_option_entries (MetaContext *context,
|
|
|
|
const GOptionEntry *entries,
|
|
|
|
const char *translation_domain);
|
|
|
|
|
2021-03-03 07:56:32 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_add_option_group (MetaContext *context,
|
|
|
|
GOptionGroup *group);
|
|
|
|
|
2021-03-03 07:55:32 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_set_plugin_gtype (MetaContext *context,
|
|
|
|
GType plugin_gtype);
|
|
|
|
|
2021-03-02 10:46:05 -05:00
|
|
|
META_EXPORT
|
2021-03-02 05:48:22 -05:00
|
|
|
void meta_context_set_plugin_name (MetaContext *context,
|
|
|
|
const char *plugin_name);
|
|
|
|
|
2021-03-03 17:02:02 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_set_gnome_wm_keybindings (MetaContext *context,
|
|
|
|
const char *wm_keybindings);
|
|
|
|
|
2021-03-02 04:35:38 -05:00
|
|
|
META_EXPORT
|
|
|
|
gboolean meta_context_configure (MetaContext *context,
|
|
|
|
int *argc,
|
|
|
|
char ***argv,
|
|
|
|
GError **error);
|
|
|
|
|
2021-03-02 05:41:34 -05:00
|
|
|
META_EXPORT
|
|
|
|
gboolean meta_context_setup (MetaContext *context,
|
|
|
|
GError **error);
|
|
|
|
|
2021-03-02 05:53:59 -05:00
|
|
|
META_EXPORT
|
|
|
|
gboolean meta_context_start (MetaContext *context,
|
|
|
|
GError **error);
|
|
|
|
|
|
|
|
META_EXPORT
|
|
|
|
gboolean meta_context_run_main_loop (MetaContext *context,
|
|
|
|
GError **error);
|
|
|
|
|
2021-03-02 06:07:10 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_notify_ready (MetaContext *context);
|
|
|
|
|
2021-03-02 05:53:59 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_terminate (MetaContext *context);
|
|
|
|
|
|
|
|
META_EXPORT
|
|
|
|
void meta_context_terminate_with_error (MetaContext *context,
|
|
|
|
GError *error);
|
|
|
|
|
2021-03-03 05:31:24 -05:00
|
|
|
META_EXPORT
|
|
|
|
MetaCompositorType meta_context_get_compositor_type (MetaContext *context);
|
|
|
|
|
2021-03-03 08:31:56 -05:00
|
|
|
META_EXPORT
|
|
|
|
MetaBackend * meta_context_get_backend (MetaContext *context);
|
|
|
|
|
2021-03-03 09:12:19 -05:00
|
|
|
META_EXPORT
|
|
|
|
MetaDisplay * meta_context_get_display (MetaContext *context);
|
|
|
|
|
2021-03-02 03:31:19 -05:00
|
|
|
#endif /* META_CONTEXT_H */
|