~ubuntu-branches/ubuntu/precise/network-manager/precise

« back to all changes in this revision

Viewing changes to include/nm-glib-compat.h

  • Committer: Package Import Robot
  • Author(s): Mathieu Trudel-Lapierre
  • Date: 2012-02-09 16:45:41 UTC
  • mfrom: (1.1.53)
  • Revision ID: package-import@ubuntu.com-20120209164541-4h90zknlsfdb7x35
Tags: 0.9.2.0+git201202091925.c721477-0ubuntu1
* upstream snapshot 2012-02-09 19:25:59 (GMT)
  + c721477d11d4fe144111d6d2eec8f93f2e9186c9
* debian/patches/avoid-periodic-disk-wakeups.patch: refreshed.
* debian/patches/nl3-default-ip6-route.patch: refreshed.
* debian/libnm-glib4.symbols: add symbols:
  + nm_active_connection_get_master@Base
  + nm_client_new_async@Base
  + nm_client_new_finish@Base
  + nm_remote_settings_new_async@Base
  + nm_remote_settings_new_finish@Base
  + nm_device_get_state_reason@Base
* debian/libnm-util2.symbols: add symbols:
  + nm_setting_802_1x_get_pac_file@Base
  + nm_setting_infiniband_get_transport_mode@Base

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
1
2
/* NetworkManager -- Network link manager
2
3
 *
3
4
 * Dan Williams <dcbw@redhat.com>
22
23
#ifndef NM_GLIB_COMPAT_H
23
24
#define NM_GLIB_COMPAT_H
24
25
 
 
26
 
25
27
#include <glib.h>
26
28
 
27
29
#if !GLIB_CHECK_VERSION(2,31,0)
29
31
#define g_value_get_schar g_value_get_char
30
32
#endif
31
33
 
 
34
#if !GLIB_CHECK_VERSION(2,30,0)
 
35
#define G_VALUE_INIT  { 0, { { 0 } } }
 
36
#endif
 
37
 
 
38
#if !GLIB_CHECK_VERSION(2,28,0)
 
39
#define g_simple_async_result_take_error(result, error) \
 
40
        G_STMT_START { \
 
41
                GError *__error = error; \
 
42
                g_simple_async_result_set_from_error (result, __error); \
 
43
                g_error_free (__error); \
 
44
        } G_STMT_END
 
45
#endif
 
46
 
32
47
#endif  /* NM_GLIB_COMPAT_H */