Ubuntu Platform API  1.0.0
A library helping with tight integration into the Ubuntu platform
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
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 
44  UStatus status,
45  const char *url,
46  void *context);
47 
58  UAUrlDispatcherSession *session,
59  const char *url,
61  void *context);
62 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 #endif // UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
UbuntuStatus
Indicates the status of an operation.
Definition: status.h:26
struct UbuntuApplicationUrlDispatcherSession UAUrlDispatcherSession
Opaque type encapsulating a session with the url dispatcher service.
Definition: session.h:33
void(* UAUrlDispatcherSessionDispatchHandler)(UStatus status, const char *url, void *context)
Callback type that is invoked for open results.
Definition: session.h:43
#define UBUNTU_DLL_PUBLIC
Definition: visibility.h:25
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.