logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: [patch] gobject sender and pid: msg#00108

freedesktop.dbus

Subject: Re: [patch] gobject sender and pid

On Mon, 2006-03-13 at 01:20 -0500, Havoc Pennington wrote:
> Suggest there should at least be accessors, rather than encouraging
> direct use of a magic object data name. But it's also an inherently
> unthreadsafe approach... maybe thread-local data? I swear we had a list
> thread a while back about how to do this though, with some conclusion.

Sure, the patch was just experimental to start some discussion; if it's
possible, like Ross and Robert suggests, to get dbus-binding-tool to
generate async method handlers for a subset (or even all) of my methods
it's fine by me.

> > I've also added dbus_bus_get_unix_process_id() as a convenience
> > function.. note that the bus have exported this method for ages now;
> > this is only convenience.
>
> Suggest naming it to exactly match the dbus method, though
> get_connection_unix_process_id() is long... dbus-bus.h is unfortunately
> very ad hoc, but ideally let's not make it worse with new methods.

Well, I just tried to do what we already did for dbus_bus_get_unix_user
to at least make the mess look consistent :-)

> I'm kind of tempted to say let's kill dbus-bus.h in favor of having
> people generate it for their bindings. Or rather, I'm almost 100% sure
> dbus-bus.h should only have dbus_bus_get() and friends, no convenience
> methods. But it's not as simple as just deleting them since the new
> binding APIs would have to be added also.

And you would break at least HAL. OK, I do agree with you and will fix
HAL to not use these "convenience" methods soon, hope others will do the
same, and perhaps it's sensible to delete these for 1.0 or later.

David


_______________________________________________
dbus mailing list
dbus-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dbus






Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo