~ubuntu-branches/ubuntu/trusty/geis/trusty

« back to all changes in this revision

Viewing changes to libs/geis-dbus/geis_dbus_region.h

  • Committer: Package Import Robot
  • Author(s): Chase Douglas
  • Date: 2012-07-30 08:51:42 UTC
  • Revision ID: package-import@ubuntu.com-20120730085142-jrc33ygjvt0ob1wl
Tags: upstream-2.2.11
ImportĀ upstreamĀ versionĀ 2.2.11

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * @file geis_dbus_region.h
 
3
 * @brief Interface for the GEIS DBus region transport.
 
4
 */
 
5
 
 
6
/*
 
7
 * Copyright 2011 Canonical Ltd.
 
8
 *
 
9
 * This library is free software; you can redistribute it and/or modify it under
 
10
 * the terms of the GNU Lesser General Public License as published by the Free
 
11
 * Software Foundation; either version 3 of the License, or (at your option) any
 
12
 * later version.
 
13
 *
 
14
 * This library is distributed in the hope that it will be useful, but WITHOUT
 
15
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
16
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 
17
 * details.
 
18
 *
 
19
 * You should have received a copy of the GNU General Public License
 
20
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
21
 */
 
22
#ifndef GEIS_DBUS_REGION_H_
 
23
#define GEIS_DBUS_REGION_H_
 
24
 
 
25
#include <dbus/dbus.h>
 
26
#include "geis/geis.h"
 
27
#include "geis_filterable.h"
 
28
 
 
29
 
 
30
/**
 
31
 * Creates a Dbus "region available" message from a GEIS region.
 
32
 *
 
33
 * @param[in] fa  A GEIS region filterable attribute.
 
34
 */
 
35
DBusMessage *
 
36
geis_dbus_region_available_message_from_region(GeisFilterableAttribute fa);
 
37
 
 
38
/**
 
39
 * Creates GEIS region filterable attribute from a DBus "region available"
 
40
 * message.
 
41
 *
 
42
 * @param[in] message  A DBus message.
 
43
 */
 
44
GeisFilterableAttribute
 
45
geis_dbus_region_from_region_available_message(DBusMessage *message);
 
46
 
 
47
#endif /* GEIS_DBUS_REGION_H_ */