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"
|
|
|
|
|
|
|
|
#define META_TYPE_CONTEXT (meta_context_get_type ())
|
|
|
|
META_EXPORT
|
|
|
|
G_DECLARE_DERIVABLE_TYPE (MetaContext, meta_context, META, CONTEXT, GObject)
|
|
|
|
|
2021-03-02 05:48:22 -05:00
|
|
|
META_EXPORT
|
|
|
|
void meta_context_set_plugin_name (MetaContext *context,
|
|
|
|
const char *plugin_name);
|
|
|
|
|
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-02 03:31:19 -05:00
|
|
|
#endif /* META_CONTEXT_H */
|