Mon, 06 Aug 2007 00:00:45 +0000
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
|
19100
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
1 | /* |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
2 | * This program is free software; you can redistribute it and/or modify |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
3 | * it under the terms of the GNU General Public License as published by |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
4 | * the Free Software Foundation; either version 2 of the License, or |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
5 | * (at your option) any later version. |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
6 | * |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
7 | * This program is distributed in the hope that it will be useful, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
8 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
9 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
10 | * GNU Library General Public License for more details. |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
11 | * |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
12 | * You should have received a copy of the GNU General Public License |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
13 | * along with this program; if not, write to the Free Software |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
14 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
15 | */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
16 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
17 | #include "internal.h" |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
18 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
19 | #include "mdns_interface.h" |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
20 | #include "debug.h" |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
21 | #include "buddy.h" |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
22 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
23 | #include <avahi-client/client.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
24 | #include <avahi-client/lookup.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
25 | #include <avahi-client/publish.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
26 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
27 | #include <avahi-common/address.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
28 | #include <avahi-common/malloc.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
29 | #include <avahi-common/error.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
30 | #include <avahi-common/strlst.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
31 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
32 | #include <avahi-glib/glib-malloc.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
33 | #include <avahi-glib/glib-watch.h> |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
34 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
35 | /* data used by avahi bonjour implementation */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
36 | typedef struct _avahi_session_impl_data { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
37 | AvahiClient *client; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
38 | AvahiGLibPoll *glib_poll; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
39 | AvahiServiceBrowser *sb; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
40 | AvahiEntryGroup *group; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
41 | } AvahiSessionImplData; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
42 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
43 | static void |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
44 | _resolver_callback(AvahiServiceResolver *r, AvahiIfIndex interface, AvahiProtocol protocol, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
45 | AvahiResolverEvent event, const char *name, const char *type, const char *domain, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
46 | const char *host_name, const AvahiAddress *a, uint16_t port, AvahiStringList *txt, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
47 | AvahiLookupResultFlags flags, void *userdata) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
48 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
49 | BonjourBuddy *buddy; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
50 | PurpleAccount *account = userdata; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
51 | AvahiStringList *l; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
52 | size_t size; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
53 | char *key, *value; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
54 | int ret; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
55 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
56 | g_return_if_fail(r != NULL); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
57 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
58 | switch (event) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
59 | case AVAHI_RESOLVER_FAILURE: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
60 | purple_debug_error("bonjour", "_resolve_callback - Failure: %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
61 | avahi_strerror(avahi_client_errno(avahi_service_resolver_get_client(r)))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
62 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
63 | case AVAHI_RESOLVER_FOUND: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
64 | /* create a buddy record */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
65 | buddy = bonjour_buddy_new(name, account); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
66 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
67 | /* Get the ip as a string */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
68 | buddy->ip = g_malloc(AVAHI_ADDRESS_STR_MAX); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
69 | avahi_address_snprint(buddy->ip, AVAHI_ADDRESS_STR_MAX, a); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
70 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
71 | buddy->port_p2pj = port; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
72 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
73 | /* Obtain the parameters from the text_record */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
74 | l = txt; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
75 | while (l != NULL) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
76 | ret = avahi_string_list_get_pair(l, &key, &value, &size); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
77 | l = l->next; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
78 | if (ret < 0) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
79 | continue; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
80 | set_bonjour_buddy_value(buddy, key, value, size); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
81 | /* TODO: Since we're using the glib allocator, I think we |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
82 | * can use the values instead of re-copying them */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
83 | avahi_free(key); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
84 | avahi_free(value); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
85 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
86 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
87 | if (!bonjour_buddy_check(buddy)) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
88 | bonjour_buddy_delete(buddy); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
89 | else |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
90 | /* Add or update the buddy in our buddy list */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
91 | bonjour_buddy_add_to_purple(buddy); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
92 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
93 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
94 | default: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
95 | purple_debug_info("bonjour", "Unrecognized Service Resolver event: %d.\n", event); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
96 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
97 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
98 | avahi_service_resolver_free(r); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
99 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
100 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
101 | static void |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
102 | _browser_callback(AvahiServiceBrowser *b, AvahiIfIndex interface, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
103 | AvahiProtocol protocol, AvahiBrowserEvent event, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
104 | const char *name, const char *type, const char *domain, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
105 | AvahiLookupResultFlags flags, void *userdata) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
106 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
107 | PurpleAccount *account = userdata; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
108 | PurpleBuddy *gb = NULL; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
109 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
110 | switch (event) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
111 | case AVAHI_BROWSER_FAILURE: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
112 | purple_debug_error("bonjour", "_browser_callback - Failure: %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
113 | avahi_strerror(avahi_client_errno(avahi_service_browser_get_client(b)))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
114 | /* TODO: This is an error that should be handled. */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
115 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
116 | case AVAHI_BROWSER_NEW: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
117 | /* A new peer has joined the network and uses iChat bonjour */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
118 | purple_debug_info("bonjour", "_browser_callback - new service\n"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
119 | /* Make sure it isn't us */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
120 | if (g_ascii_strcasecmp(name, account->username) != 0) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
121 | if (!avahi_service_resolver_new(avahi_service_browser_get_client(b), |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
122 | interface, protocol, name, type, domain, AVAHI_PROTO_UNSPEC, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
123 | 0, _resolver_callback, account)) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
124 | purple_debug_warning("bonjour", "_browser_callback -- Error initiating resolver: %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
125 | avahi_strerror(avahi_client_errno(avahi_service_browser_get_client(b)))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
126 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
127 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
128 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
129 | case AVAHI_BROWSER_REMOVE: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
130 | purple_debug_info("bonjour", "_browser_callback - Remove service\n"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
131 | gb = purple_find_buddy(account, name); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
132 | if (gb != NULL) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
133 | bonjour_buddy_delete(gb->proto_data); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
134 | purple_blist_remove_buddy(gb); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
135 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
136 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
137 | case AVAHI_BROWSER_ALL_FOR_NOW: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
138 | case AVAHI_BROWSER_CACHE_EXHAUSTED: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
139 | purple_debug_warning("bonjour", "(Browser) %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
140 | event == AVAHI_BROWSER_CACHE_EXHAUSTED ? "CACHE_EXHAUSTED" : "ALL_FOR_NOW"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
141 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
142 | default: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
143 | purple_debug_info("bonjour", "Unrecognized Service browser event: %d.\n", event); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
144 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
145 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
146 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
147 | static void |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
148 | _entry_group_cb(AvahiEntryGroup *g, AvahiEntryGroupState state, void *userdata) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
149 | AvahiSessionImplData *idata = userdata; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
150 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
151 | g_return_if_fail(g == idata->group || idata->group == NULL); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
152 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
153 | switch(state) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
154 | case AVAHI_ENTRY_GROUP_ESTABLISHED: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
155 | purple_debug_info("bonjour", "Successfully registered service.\n"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
156 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
157 | case AVAHI_ENTRY_GROUP_COLLISION: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
158 | purple_debug_error("bonjour", "Collision registering entry group.\n"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
159 | /* TODO: Handle error - this should log out the account. (Possibly with "wants to die")*/ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
160 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
161 | case AVAHI_ENTRY_GROUP_FAILURE: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
162 | purple_debug_error("bonjour", "Error registering entry group: %s\n.", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
163 | avahi_strerror(avahi_client_errno(avahi_entry_group_get_client(g)))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
164 | /* TODO: Handle error - this should log out the account.*/ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
165 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
166 | case AVAHI_ENTRY_GROUP_UNCOMMITED: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
167 | case AVAHI_ENTRY_GROUP_REGISTERING: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
168 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
169 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
170 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
171 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
172 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
173 | /**************************** |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
174 | * mdns_interface functions * |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
175 | ****************************/ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
176 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
177 | gboolean _mdns_init_session(BonjourDnsSd *data) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
178 | AvahiSessionImplData *idata = g_new0(AvahiSessionImplData, 1); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
179 | const AvahiPoll *poll_api; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
180 | int error; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
181 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
182 | /* Tell avahi to use g_malloc and g_free */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
183 | avahi_set_allocator (avahi_glib_allocator ()); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
184 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
185 | /* This currently depends on the glib mainloop, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
186 | * we should make it use the libpurple abstraction */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
187 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
188 | idata->glib_poll = avahi_glib_poll_new(NULL, G_PRIORITY_DEFAULT); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
189 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
190 | poll_api = avahi_glib_poll_get(idata->glib_poll); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
191 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
192 | idata->client = avahi_client_new(poll_api, 0, NULL, data, &error); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
193 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
194 | if (idata->client == NULL) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
195 | purple_debug_error("bonjour", "Error initializing Avahi: %s", avahi_strerror(error)); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
196 | avahi_glib_poll_free(idata->glib_poll); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
197 | g_free(idata); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
198 | return FALSE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
199 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
200 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
201 | data->mdns_impl_data = idata; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
202 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
203 | return TRUE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
204 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
205 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
206 | gboolean _mdns_publish(BonjourDnsSd *data, PublishType type) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
207 | int publish_result = 0; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
208 | char portstring[6]; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
209 | const char *jid, *aim, *email; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
210 | AvahiSessionImplData *idata = data->mdns_impl_data; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
211 | AvahiStringList *lst = NULL; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
212 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
213 | g_return_val_if_fail(idata != NULL, FALSE); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
214 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
215 | if (!idata->group) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
216 | idata->group = avahi_entry_group_new(idata->client, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
217 | _entry_group_cb, idata); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
218 | if (!idata->group) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
219 | purple_debug_error("bonjour", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
220 | "Unable to initialize the data for the mDNS (%s).\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
221 | avahi_strerror(avahi_client_errno(idata->client))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
222 | return FALSE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
223 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
224 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
225 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
226 | /* Convert the port to a string */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
227 | snprintf(portstring, sizeof(portstring), "%d", data->port_p2pj); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
228 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
229 | jid = purple_account_get_string(data->account, "jid", NULL); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
230 | aim = purple_account_get_string(data->account, "AIM", NULL); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
231 | email = purple_account_get_string(data->account, "email", NULL); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
232 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
233 | /* We should try to follow XEP-0174, but some clients have "issues", so we humor them. |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
234 | * See http://telepathy.freedesktop.org/wiki/SalutInteroperability |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
235 | */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
236 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
237 | /* Needed by iChat */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
238 | lst = avahi_string_list_add_pair(lst,"txtvers", "1"); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
239 | /* Needed by Gaim/Pidgin <= 2.0.1 (remove at some point) */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
240 | lst = avahi_string_list_add_pair(lst, "1st", data->first); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
241 | /* Needed by Gaim/Pidgin <= 2.0.1 (remove at some point) */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
242 | lst = avahi_string_list_add_pair(lst, "last", data->last); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
243 | /* Needed by Adium */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
244 | lst = avahi_string_list_add_pair(lst, "port.p2pj", portstring); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
245 | /* Needed by iChat, Gaim/Pidgin <= 2.0.1 */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
246 | lst = avahi_string_list_add_pair(lst, "status", data->status); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
247 | /* Currently always set to "!" since we don't support AV and wont ever be in a conference */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
248 | lst = avahi_string_list_add_pair(lst, "vc", data->vc); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
249 | lst = avahi_string_list_add_pair(lst, "ver", VERSION); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
250 | if (email != NULL && *email != '\0') |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
251 | lst = avahi_string_list_add_pair(lst, "email", email); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
252 | if (jid != NULL && *jid != '\0') |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
253 | lst = avahi_string_list_add_pair(lst, "jid", jid); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
254 | /* Nonstandard, but used by iChat */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
255 | if (aim != NULL && *aim != '\0') |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
256 | lst = avahi_string_list_add_pair(lst, "AIM", aim); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
257 | if (data->msg != NULL && *data->msg != '\0') |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
258 | lst = avahi_string_list_add_pair(lst, "msg", data->msg); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
259 | if (data->phsh != NULL && *data->phsh != '\0') |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
260 | lst = avahi_string_list_add_pair(lst, "phsh", data->phsh); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
261 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
262 | /* TODO: ext, nick, node */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
263 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
264 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
265 | /* Publish the service */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
266 | switch (type) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
267 | case PUBLISH_START: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
268 | publish_result = avahi_entry_group_add_service_strlst( |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
269 | idata->group, AVAHI_IF_UNSPEC, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
270 | AVAHI_PROTO_UNSPEC, 0, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
271 | purple_account_get_username(data->account), |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
272 | ICHAT_SERVICE, NULL, NULL, data->port_p2pj, lst); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
273 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
274 | case PUBLISH_UPDATE: |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
275 | publish_result = avahi_entry_group_update_service_txt_strlst( |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
276 | idata->group, AVAHI_IF_UNSPEC, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
277 | AVAHI_PROTO_UNSPEC, 0, |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
278 | purple_account_get_username(data->account), |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
279 | ICHAT_SERVICE, NULL, lst); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
280 | break; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
281 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
282 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
283 | /* Free the memory used by temp data */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
284 | avahi_string_list_free(lst); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
285 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
286 | if (publish_result < 0) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
287 | purple_debug_error("bonjour", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
288 | "Failed to add the " ICHAT_SERVICE " service. Error: %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
289 | avahi_strerror(publish_result)); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
290 | return FALSE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
291 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
292 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
293 | if ((publish_result = avahi_entry_group_commit(idata->group)) < 0) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
294 | purple_debug_error("bonjour", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
295 | "Failed to commit " ICHAT_SERVICE " service. Error: %s\n", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
296 | avahi_strerror(publish_result)); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
297 | return FALSE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
298 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
299 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
300 | return TRUE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
301 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
302 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
303 | gboolean _mdns_browse(BonjourDnsSd *data) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
304 | AvahiSessionImplData *idata = data->mdns_impl_data; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
305 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
306 | g_return_val_if_fail(idata != NULL, FALSE); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
307 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
308 | idata->sb = avahi_service_browser_new(idata->client, AVAHI_IF_UNSPEC, AVAHI_PROTO_UNSPEC, ICHAT_SERVICE, NULL, 0, _browser_callback, data->account); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
309 | if (!idata->sb) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
310 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
311 | purple_debug_error("bonjour", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
312 | "Unable to initialize service browser. Error: %s\n.", |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
313 | avahi_strerror(avahi_client_errno(idata->client))); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
314 | return FALSE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
315 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
316 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
317 | return TRUE; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
318 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
319 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
320 | /* This is done differently than with Howl/Apple Bonjour */ |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
321 | guint _mdns_register_to_mainloop(BonjourDnsSd *data) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
322 | return 0; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
323 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
324 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
325 | void _mdns_stop(BonjourDnsSd *data) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
326 | AvahiSessionImplData *idata = data->mdns_impl_data; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
327 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
328 | if (idata == NULL || idata->client == NULL) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
329 | return; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
330 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
331 | if (idata->sb != NULL) |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
332 | avahi_service_browser_free(idata->sb); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
333 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
334 | avahi_client_free(idata->client); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
335 | avahi_glib_poll_free(idata->glib_poll); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
336 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
337 | g_free(idata); |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
338 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
339 | data->mdns_impl_data = NULL; |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
340 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
341 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
342 | void _mdns_init_buddy(BonjourBuddy *buddy) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
343 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
344 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
345 | void _mdns_delete_buddy(BonjourBuddy *buddy) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
346 | } |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
347 | |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
348 | void bonjour_dns_sd_retrieve_buddy_icon(BonjourBuddy* buddy) { |
|
28880833384b
Here is a native avahi implementation of the bonjour prpl that I whipped up. Someone more autofoo savvy will probably want to review what I've done to that stuff. Fixes #326.
Daniel Atallah <datallah@pidgin.im>
parents:
diff
changeset
|
349 | } |