Blame gio/gcontextspecificgroup.h

Packit ae235b
/*
Packit ae235b
 * Copyright © 2015 Canonical Limited
Packit ae235b
 *
Packit ae235b
 * This library is free software; you can redistribute it and/or
Packit ae235b
 * modify it under the terms of the GNU Lesser General Public
Packit ae235b
 * License as published by the Free Software Foundation; either
Packit ae235b
 * version 2.1 of the License, or (at your option) any later version.
Packit ae235b
 *
Packit ae235b
 * This library is distributed in the hope that it will be useful,
Packit ae235b
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit ae235b
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit ae235b
 * Lesser General Public License for more details.
Packit ae235b
 *
Packit ae235b
 * You should have received a copy of the GNU Lesser General Public
Packit ae235b
 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
Packit ae235b
 *
Packit ae235b
 * Author: Ryan Lortie <desrt@desrt.ca>
Packit ae235b
 */
Packit ae235b
Packit ae235b
#ifndef __G_CONTEXT_SPECIFIC_GROUP_H__
Packit ae235b
#define __G_CONTEXT_SPECIFIC_GROUP_H__
Packit ae235b
Packit ae235b
#include <glib-object.h>
Packit ae235b
Packit ae235b
typedef struct
Packit ae235b
{
Packit ae235b
  GHashTable *table;
Packit ae235b
  GMutex      lock;
Packit ae235b
  GCond       cond;
Packit ae235b
  gboolean    requested_state;
Packit ae235b
  GCallback   requested_func;
Packit ae235b
  gboolean    effective_state;
Packit ae235b
} GContextSpecificGroup;
Packit ae235b
Packit ae235b
gpointer
Packit ae235b
g_context_specific_group_get (GContextSpecificGroup *group,
Packit ae235b
                              GType                  type,
Packit ae235b
                              goffset                context_offset,
Packit ae235b
                              GCallback              start_func);
Packit ae235b
Packit ae235b
void
Packit ae235b
g_context_specific_group_remove (GContextSpecificGroup *group,
Packit ae235b
                                 GMainContext          *context,
Packit ae235b
                                 gpointer               instance,
Packit ae235b
                                 GCallback              stop_func);
Packit ae235b
Packit ae235b
void
Packit ae235b
g_context_specific_group_emit (GContextSpecificGroup *group,
Packit ae235b
                               guint                  signal_id);
Packit ae235b
Packit ae235b
#endif /* __G_CONTEXT_SPECIFIC_GROUP_H__ */