Ubuntu Platform API
3.0.0
A library helping with tight integration into the Ubuntu platform
session.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
*/
17
18
#ifndef UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
19
#define UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
20
21
#include <
ubuntu/status.h
>
22
#include <
ubuntu/visibility.h
>
23
24
#ifdef __cplusplus
25
extern
"C"
26
{
27
#endif
28
33
typedef
struct
UbuntuApplicationUrlDispatcherSession
UAUrlDispatcherSession
;
34
43
typedef
void (*
UAUrlDispatcherSessionDispatchHandler
)(
44
UStatus
status,
45
const
char
*url,
46
void
*context);
47
56
UBUNTU_DLL_PUBLIC
void
57
ua_url_dispatcher_session_open
(
58
UAUrlDispatcherSession
*session,
59
const
char
*url,
60
UAUrlDispatcherSessionDispatchHandler
handler,
61
void
*context);
62
63
64
#ifdef __cplusplus
65
}
66
#endif
67
68
#endif // UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
UAUrlDispatcherSession
struct UbuntuApplicationUrlDispatcherSession UAUrlDispatcherSession
Opaque type encapsulating a session with the url dispatcher service.
Definition:
session.h:33
UAUrlDispatcherSessionDispatchHandler
void(* UAUrlDispatcherSessionDispatchHandler)(UStatus status, const char *url, void *context)
Callback type that is invoked for open results.
Definition:
session.h:43
visibility.h
UbuntuStatus
UbuntuStatus
Indicates the status of an operation.
Definition:
status.h:26
UBUNTU_DLL_PUBLIC
#define UBUNTU_DLL_PUBLIC
Definition:
visibility.h:26
ua_url_dispatcher_session_open
UBUNTU_DLL_PUBLIC void ua_url_dispatcher_session_open(UAUrlDispatcherSession *session, const char *url, UAUrlDispatcherSessionDispatchHandler handler, void *context)
Tells the url dispatcher to open the given url.
status.h
include
ubuntu
application
url_dispatcher
session.h
Generated on Mon Dec 12 2022 08:07:29 for Ubuntu Platform API by
1.8.17