Re: Avahi Support on Linux

2014-01-29 Thread Siqi Liu
Hello, The code using avahi_client_new is already in LibreOffice (I've pushed it during last summer). I've tried to make a separate version of that same code broadcasting a _impressremote._tcp service alone. Even though the code compiles fine using dlopen, it does get an error code that I've neve

Re: Avahi Support on Linux

2014-01-29 Thread Caolán McNamara
On Fri, 2014-01-24 at 22:51 +0100, Siqi Liu wrote: > > For example, I can dlsym this function and get the void * to it, but > how can I use it if I don't have access to the struct AvahiClient > (declaired in the shared object)? > AvahiClient* avahi_client_new > ( > const AvahiPoll * > poll_api, >

Re: Avahi Support on Linux

2014-01-25 Thread Siqi Liu
Hello again, It seems to me that I still need to include those avahi headers, but how can we be sure that these headers are there? By copying them into our codebase? Is that compatible with our license? (LGPL for Avahi) Thanks for you answers and sorry for the spam, I'm totally new to these dlope

Re: Avahi Support on Linux

2014-01-24 Thread Siqi Liu
Hello Caolan, Tor, I've done some research and I've more or less understood how it works now. Now, with Avahi, I am supposed to use dlsym to import several functions from libavahi-client.so.3 and libavahi-common.so.3 during the runtime. However, the dlsym should return a pointer to the function w

Re: Avahi Support on Linux

2014-01-09 Thread Caolán McNamara
On Tue, 2014-01-07 at 15:31 +0100, Siqi Liu wrote: > Tor pushed a quick fix for that and disabled avahi temporarily so that > it doesn't get compiled unless specified. I'm thinking of fixing that > but not sure how to load Avahi dynamically depending on the presence > of Avahi library on the distri

Avahi Support on Linux

2014-01-07 Thread Siqi Liu
Hello all, During this summer I've implemented Zeroconf service with Avahi on Linux distro, though it worked on my Ubuntu box, it doesn't seem to be supported on "all" distributions, and it has thus broken quite a lot of tinderboxes at that time... Tor pushed a quick fix for that and disabled ava