On Tue, 2009-09-22 at 15:53 +0100, Lukas Zeller wrote:
> To make both server and client libraries linkable into the same app,  
> libsynthesis_srv defines a different prefix for the entry points:  
> SySync_srv_xxxxx (defined in
> serverengine_opensource_linux_prefix.h),  
> as opposed to SySync_xxxxx for the client variant.

"linkable into the same app" only works when using shared libraries. In
static libraries there still would be plenty of name clashes, wouldn't
they?

Renaming the entry points makes it impossible to connect to the server
engine via the SDK, unless we change the SDK. Should the semantic of the
Connect() name parameter be extended?

        "[]" = builtin client lib
        "[server:]" = builtin server lib (different names of entry points)
        "<foo>" = client lib <foo>
        "server:<foo>" = server lib <foo>

For the time being I compile the server engine so that it looks like a
client engine. Note: if that is reverted, then the SySync_srv_ symbols
must be added to src/synthesis-linker.map, otherwise they are not
exported on Linux.

-- 
Best Regards, Patrick Ohly

The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.



_______________________________________________
os-libsynthesis mailing list
[email protected]
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to