Blame src/verto-glib.h

Packit 086201
/*
Packit 086201
 * Copyright 2011 Red Hat, Inc.
Packit 086201
 *
Packit 086201
 * Permission is hereby granted, free of charge, to any person
Packit 086201
 * obtaining a copy of this software and associated documentation files
Packit 086201
 * (the "Software"), to deal in the Software without restriction,
Packit 086201
 * including without limitation the rights to use, copy, modify, merge,
Packit 086201
 * publish, distribute, sublicense, and/or sell copies of the Software,
Packit 086201
 * and to permit persons to whom the Software is furnished to do so,
Packit 086201
 * subject to the following conditions:
Packit 086201
 *
Packit 086201
 * The above copyright notice and this permission notice shall be
Packit 086201
 * included in all copies or substantial portions of the Software.
Packit 086201
 *
Packit 086201
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
Packit 086201
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit 086201
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
Packit 086201
 * NONINFRINGEMENT.  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
Packit 086201
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
Packit 086201
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
Packit 086201
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
Packit 086201
 * SOFTWARE.
Packit 086201
 */
Packit 086201
Packit 086201
#ifndef VERTO_GLIB_H_
Packit 086201
#define VERTO_GLIB_H_
Packit 086201
Packit 086201
#include <verto.h>
Packit 086201
#include <glib.h>
Packit 086201
Packit 086201
#ifdef __cplusplus
Packit 086201
extern "C"
Packit 086201
{
Packit 086201
#endif /* __cplusplus */
Packit 086201
Packit 086201
verto_ctx *
Packit 086201
verto_new_glib(void);
Packit 086201
Packit 086201
verto_ctx *
Packit 086201
verto_default_glib(void);
Packit 086201
Packit 086201
/**
Packit 086201
 * mc == NULL, ml == NULL -- Use the default main loop
Packit 086201
 *
Packit 086201
 * If mc is specified, a reference is stolen unless mc is the default loop.
Packit 086201
 * A reference is always stolen for ml.
Packit 086201
 */
Packit 086201
verto_ctx *
Packit 086201
verto_convert_glib(GMainContext *mc, GMainLoop *ml);
Packit 086201
Packit 086201
#ifdef __cplusplus
Packit 086201
} /* extern "C" */
Packit 086201
#endif /* __cplusplus */
Packit 086201
#endif /* VERTO_GLIB_H_ */