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-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

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

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

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