~ubuntu-branches/ubuntu/vivid/liferea/vivid-proposed

« back to all changes in this revision

Viewing changes to src/sync/avahi_browser.h

  • Committer: Package Import Robot
  • Author(s): Moray Allan, Bojo42, Rodrigo Gallardo, Moray Allan
  • Date: 2012-03-27 21:44:42 UTC
  • mfrom: (1.5.1)
  • mto: (3.3.2 experimental)
  • mto: This revision was merged to the branch mainline in revision 122.
  • Revision ID: package-import@ubuntu.com-20120327214442-g0xfh714cdmsbnts
Tags: 1.8.3-0.1
[ Bojo42 ]
* Non-maintainer upload.
* New upstream release (Closes: #502307, #623619, #631778, #651913) 
* debian/patches:
  - drop libnotify0.7 as in upstream
  - debian-example-feeds: update, move planets from "News" to "Open Source"
  - www-browser: update due to new file location
  - libtool-dont-rearange-as-needed: rebase
* debian/control:
  - update Standards-Version
  - remove obsolete Build-Depends:
    - quilt not needed for "3.0 (quilt)" source format
    - libnm-glib-dev & libdbus-glib-1-dev: upstream switched to GDBus
    - liblua5.1-0-dev: LUA scripting support got dropped
  - new Build-Depends on libunique-dev, libjson-glib-dev & dh_autoreconf
  - update version dependencies
* debian/rules: run dh_autoreconf & update translations
* debian/liferea.install: nothing to ship from /usr/lib/liferea

[ Rodrigo Gallardo ]
* Lintian love:
  - debian/control: switch from Conflicts to Breaks
  - debian/rules: redo build targets

[ Moray Allan ]
* debian/copyright: update to include additional copyright owners.
* debian/patches/www-browser: also set default external browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**
2
 
 * @file avahi_browser.h  cache synchronization using AVAHI
3
 
 * 
4
 
 * Copyright (C) 2007 Lars Lindner <lars.lindner@gmail.com>
5
 
 *
6
 
 * This program is free software; you can redistribute it and/or modify
7
 
 * it under the terms of the GNU General Public License as published by
8
 
 * the Free Software Foundation; either version 2 of the License, or
9
 
 * (at your option) any later version. 
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19
 
 */
20
 
#ifndef _AVAHI_H
21
 
#define _AVAHI_H
22
 
 
23
 
#include <glib.h>
24
 
#include <glib-object.h>
25
 
 
26
 
G_BEGIN_DECLS
27
 
 
28
 
#define LIFEREA_AVAHI_BROWSER_TYPE              (liferea_avahi_browser_get_type ())
29
 
#define LIFEREA_AVAHI_BROWSER(obj)              (G_TYPE_CHECK_INSTANCE_CAST ((obj), LIFEREA_AVAHI_BROWSER_TYPE, LifereaAvahiBrowser))
30
 
#define LIFEREA_AVAHI_BROWSER_CLASS(klass)      (G_TYPE_CHECK_CLASS_CAST ((klass), LIFEREA_AVAHI_BROWSER_TYPE, LifereaAvahiBrowserClass))
31
 
#define IS_LIFEREA_AVAHI_BROWSER(obj)           (G_TYPE_CHECK_INSTANCE_TYPE ((obj), LIFEREA_AVAHI_BROWSER_TYPE))
32
 
#define IS_LIFEREA_AVAHI_BROWSER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), LIFEREA_AVAHI_BROWSER_TYPE))
33
 
#define LIFEREA_AVAHI_BROWSER_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), LIFEREA_AVAHI_BROWSER_TYPE, LifereaAvahiBrowserClass))
34
 
 
35
 
typedef struct LifereaAvahiBrowserPrivate LifereaAvahiBrowserPrivate;
36
 
 
37
 
typedef struct {
38
 
        GObject         object;
39
 
        
40
 
        LifereaAvahiBrowserPrivate      *priv;
41
 
} LifereaAvahiBrowser;
42
 
 
43
 
typedef struct {
44
 
        GObjectClass    parent_class;
45
 
 
46
 
} LifereaAvahiBrowserClass;
47
 
 
48
 
typedef enum
49
 
{
50
 
        LIFEREA_AVAHI_BROWSER_ERROR_NOT_RUNNING,
51
 
        LIFEREA_AVAHI_BROWSER_ERROR_FAILED,
52
 
} LifereaAvahiBrowserError;
53
 
 
54
 
#define LIFEREA_AVAHI_BROWSER_ERROR liferea_avahi_browser_error_quark ()
55
 
 
56
 
GType   liferea_avahi_browser_get_type (void);
57
 
 
58
 
/**
59
 
 * Set up a new AVAHI browser
60
 
 */
61
 
LifereaAvahiBrowser     *liferea_avahi_browser_new (void);
62
 
 
63
 
/** 
64
 
 * Start browser searching for sync peers.
65
 
 *
66
 
 * @param browser       Liferea service browser object
67
 
 */
68
 
void liferea_avahi_browser_start (LifereaAvahiBrowser *browser);
69
 
 
70
 
/**
71
 
 * Stop browsing for sync peers.
72
 
 *
73
 
 * @param browser       Liferea service browser object
74
 
 */
75
 
void liferea_avahi_browser_stop (LifereaAvahiBrowser *browser);
76
 
 
77
 
G_END_DECLS
78
 
 
79
 
#endif