session.h
Go to the documentation of this file.
/*
* Copyright © 2013 Canonical Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License version 3 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
#define UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
#include <ubuntu/status.h>
#include <ubuntu/visibility.h>
#ifdef __cplusplus
extern "C"
{
#endif
typedef struct UbuntuApplicationUrlDispatcherSession UAUrlDispatcherSession;
typedef void (*UAUrlDispatcherSessionDispatchHandler)(
UStatus status,
const char *url,
void *context);
UBUNTU_DLL_PUBLIC void
ua_url_dispatcher_session_open(
UAUrlDispatcherSession *session,
const char *url,
UAUrlDispatcherSessionDispatchHandler handler,
void *context);
#ifdef __cplusplus
}
#endif
#endif // UBUNTU_APPLICATION_URL_DISPATCHER_SESSION_H_
UbuntuStatus
UbuntuStatus
Indicates the status of an operation.
Definition: status.h:26
UAUrlDispatcherSession
struct UbuntuApplicationUrlDispatcherSession UAUrlDispatcherSession
Opaque type encapsulating a session with the url dispatcher service.
Definition: session.h:33
visibility.h
status.h
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.
UAUrlDispatcherSessionDispatchHandler
void(* UAUrlDispatcherSessionDispatchHandler)(UStatus status, const char *url, void *context)
Callback type that is invoked for open results.
Definition: session.h:43