Yup, my main point was protobuf needs to be a function that creates
a protobuffer instance, not a class instance itself, since mtaylor
reported constructors w/ dlopen() are not reliable on all platforms
(I'm curious which). Of course most of this can by hidden by a macro
that is populated from plugin.ini variables.
-Eric
On Mon, Mar 08, 2010 at 03:36:47PM -0800, Brian Aker wrote:
> Hi!
>
> At this point all we need is:
>
> {
> protobuf;
> init();
> variable_init();
> }
>
> Using the protobuf pretty much means we can skip everything else.
>
> And like Jeremy pointed out... URL! I hadn't thought about that till
> today. I don't want to have to keep adjusting the structure every
> time we think of something new.
>
> Cheers,
> -Brian
>
> On Mar 8, 2010, at 3:30 PM, Eric Day wrote:
>
> >The only concern here is that we need a struct that can be dlopen()ed,
> >we don't want to have a proper class with constructor for this type of
> >information. We could have a struct that contains a function pointer
> >(you should not dlym functions directly), and then that function can
> >produce the protobuf. Seems like a few more hoops to jump through,
> >but versioned structs may be as well. Depends on how often we really
> >think we'll need to change this. :)
> >
> >-Eric
> >
> >On Mon, Mar 08, 2010 at 02:53:23PM -0800, Brian Aker wrote:
> >>Hi!
> >>
> >>What would folks think about having plugins return a protobuf
> >>message saying "this is me"?
> >>
> >>We have LICENSE, Author, etc... and I suspect we will continue to
> >>extend it.
> >>
> >>Thoughts? Love it? Hate it?
> >>
> >>Cheers,
> >> -Brian
> >>
> >>_______________________________________________
> >>Mailing list: https://launchpad.net/~drizzle-discuss
> >>Post to : [email protected]
> >>Unsubscribe : https://launchpad.net/~drizzle-discuss
> >>More help : https://help.launchpad.net/ListHelp
_______________________________________________
Mailing list: https://launchpad.net/~drizzle-discuss
Post to : [email protected]
Unsubscribe : https://launchpad.net/~drizzle-discuss
More help : https://help.launchpad.net/ListHelp