instance.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* 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 Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
* Thomas Voß <thomas.voss@canonical.com>
*/
#ifndef UBUNTU_APPLICATION_INSTANCE_H_
#define UBUNTU_APPLICATION_INSTANCE_H_
#include <ubuntu/visibility.h>
#include <ubuntu/application/description.h>
#include <ubuntu/application/options.h>
#include <mir_toolkit/mir_client_library.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef void UApplicationInstance;
UBUNTU_DLL_PUBLIC UApplicationInstance*
u_application_instance_new_from_description_with_options(
UApplicationDescription *desc,
UApplicationOptions *options);
UBUNTU_DLL_PUBLIC MirConnection*
u_application_instance_get_mir_connection(
UApplicationInstance *instance);
UBUNTU_DLL_PUBLIC void
u_application_instance_ref(
UApplicationInstance *instance);
UBUNTU_DLL_PUBLIC void
u_application_instance_unref(
UApplicationInstance *instance);
UBUNTU_DLL_PUBLIC void
u_application_instance_destroy(
UApplicationInstance *instance);
UBUNTU_DLL_PUBLIC void
u_application_instance_run(
UApplicationInstance *instance);
#ifdef __cplusplus
}
#endif
#endif /* UBUNTU_APPLICATION_INSTANCE_H_ */
u_application_instance_run
UBUNTU_DLL_PUBLIC void u_application_instance_run(UApplicationInstance *instance)
Executes the event loop of the application instance.
u_application_instance_unref
UBUNTU_DLL_PUBLIC void u_application_instance_unref(UApplicationInstance *instance)
Decrements the reference count of an application instance and releases all resources held by the obje...
u_application_instance_new_from_description_with_options
UBUNTU_DLL_PUBLIC UApplicationInstance * u_application_instance_new_from_description_with_options(UApplicationDescription *desc, UApplicationOptions *options)
Creates a new application instance with a reference count of 1.
u_application_instance_get_mir_connection
UBUNTU_DLL_PUBLIC MirConnection * u_application_instance_get_mir_connection(UApplicationInstance *instance)
Return the MirConnection associated with an application instance. Use of MirConnection with the mir c...
u_application_instance_destroy
UBUNTU_DLL_PUBLIC void u_application_instance_destroy(UApplicationInstance *instance)
Destroys the application instance and releases all its resources.
u_application_instance_ref
UBUNTU_DLL_PUBLIC void u_application_instance_ref(UApplicationInstance *instance)
Increments the reference count of an application instance.
description.h
visibility.h
UApplicationDescription
void UApplicationDescription
Encapsulates properties of an application instance.
Definition: description.h:36
UApplicationInstance
void UApplicationInstance
Opaque type describing an application instance.An application instance encapsulates the event loop of...
Definition: instance.h:41
UApplicationOptions
void UApplicationOptions
Encapsulates options as passed to the application.
Definition: options.h:35
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26
options.h