Ubuntu Platform API
3.0.0
A library helping with tight integration into the Ubuntu platform
id.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_ID_H_
21
#define UBUNTU_APPLICATION_ID_H_
22
23
#include <
ubuntu/visibility.h
>
24
25
#include <stdlib.h>
26
27
#ifdef __cplusplus
28
extern
"C"
{
29
#endif
30
35
typedef
void
UApplicationId
;
36
43
UBUNTU_DLL_PUBLIC
UApplicationId
*
44
u_application_id_new_from_stringn
(
45
const
char
*
string
,
46
size_t
size);
47
53
UBUNTU_DLL_PUBLIC
void
54
u_application_id_destroy
(
UApplicationId
*
id
);
55
63
UBUNTU_DLL_PUBLIC
int
64
u_application_id_compare
(
65
UApplicationId
*lhs,
66
UApplicationId
*rhs);
67
68
#ifdef __cplusplus
69
}
70
#endif
71
72
#endif
/* UBUNTU_APPLICATION_ID_H_ */
UApplicationId
void UApplicationId
An opaque type describing an application ID.
Definition:
id.h:35
u_application_id_compare
UBUNTU_DLL_PUBLIC int u_application_id_compare(UApplicationId *lhs, UApplicationId *rhs)
Compares two application ID instances.
u_application_id_destroy
UBUNTU_DLL_PUBLIC void u_application_id_destroy(UApplicationId *id)
Destroy the supplied application ID instance.
visibility.h
u_application_id_new_from_stringn
UBUNTU_DLL_PUBLIC UApplicationId * u_application_id_new_from_stringn(const char *string, size_t size)
Creates a new application ID from an existing string.
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition:
visibility.h:26
include
ubuntu
application
id.h
Generated on Mon Dec 12 2022 08:07:29 for Ubuntu Platform API by
1.8.17