Ubuntu Platform API 3.0.0
A library helping with tight integration into the Ubuntu platform
description.h
Go to the documentation of this file.
1/*
2 * Copyright © 2013 Canonical Ltd.
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License version 3 as
6 * published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * Authored by: Ricardo Mendoza <ricardo.mendoza@canonical.com>
17 * Thomas Voß <thomas.voss@canonical.com>
18 */
19
20#ifndef UBUNTU_APPLICATION_DESCRIPTION_H_
21#define UBUNTU_APPLICATION_DESCRIPTION_H_
22
23#include <ubuntu/visibility.h>
24
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
37
45
54
64 UApplicationId *id);
65
75
85 UApplicationLifecycleDelegate *lifecycle_delegate);
86
96
97#ifdef __cplusplus
98}
99#endif
100
101#endif /* UBUNTU_APPLICATION_DESCRIPTION_H_ */
void UApplicationLifecycleDelegate
Opaque type encapsulating all app-specific callback functions.
UBUNTU_DLL_PUBLIC UApplicationId * u_application_description_get_application_id(UApplicationDescription *desc)
Queries the application id contained in the description instance.
void UApplicationDescription
Encapsulates properties of an application instance.
Definition: description.h:36
UBUNTU_DLL_PUBLIC UApplicationDescription * u_application_description_new()
Creates a new instance of application description.
UBUNTU_DLL_PUBLIC void u_application_description_set_application_lifecycle_delegate(UApplicationDescription *desc, UApplicationLifecycleDelegate *lifecycle_delegate)
Sets the application lifecycle delegate.
void UApplicationId
An opaque type describing an application ID.
Definition: id.h:35
UBUNTU_DLL_PUBLIC UApplicationLifecycleDelegate * u_application_description_get_application_lifecycle_delegate(UApplicationDescription *desc)
Queries the application lifecycle delegate.
UBUNTU_DLL_PUBLIC void u_application_description_destroy(UApplicationDescription *desc)
Destroys an instance of application description and releases all resources.
UBUNTU_DLL_PUBLIC void u_application_description_set_application_id(UApplicationDescription *desc, UApplicationId *id)
Sets the application id contained in the description instance.
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:26