~ricmm/platform-api/guards-for-null-sensors

« back to all changes in this revision

Viewing changes to include/ubuntu/application/id.h

* Add headers for new refactored platform API
* Implement new API for Android/hybris backend
* Implement lifecycle iteration 0 delegates infrastructure
* Do away with all old public headers and use only the new API.

Approved by Michael Frey, Ricardo Salveti, Thomas Voß, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
#ifdef __cplusplus
 
24
extern "C" {
 
25
#endif
 
26
 
 
27
    typedef void UApplicationId;
 
28
    
 
29
    UApplicationId*
 
30
    u_application_id_new_from_stringn(
 
31
        const char *string, 
 
32
        size_t size);
 
33
    
 
34
    void
 
35
    u_application_id_destroy(UApplicationId *id);
 
36
    
 
37
    int
 
38
    u_application_id_compare(
 
39
        UApplicationId *lhs,
 
40
        UApplicationId *rhs);
 
41
       
 
42
#ifdef __cplusplus
 
43
}
 
44
#endif
 
45
 
 
46
#endif /* UBUNTU_APPLICATION_ID_H_ */