Linux bluetooth development
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ v2 2/5] gdbus: Implement DBus.Properties.Get method
Date: Tue, 24 Jul 2012 15:36:18 +0200	[thread overview]
Message-ID: <1343136978.24426.51.camel@aeonflux> (raw)
In-Reply-To: <1343126786-12628-3-git-send-email-lucas.demarchi@profusion.mobi>

Hi Lucas,

>  gdbus/gdbus.h  | 13 ++++++++++--
>  gdbus/object.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
>  2 files changed, 72 insertions(+), 3 deletions(-)
> 
> diff --git a/gdbus/gdbus.h b/gdbus/gdbus.h
> index 0a8a27c..e2a8460 100644
> --- a/gdbus/gdbus.h
> +++ b/gdbus/gdbus.h
> @@ -55,6 +55,13 @@ typedef void (* GDBusDestroyFunction) (void *user_data);
>  typedef DBusMessage * (* GDBusMethodFunction) (DBusConnection *connection,
>  					DBusMessage *message, void *user_data);
>  
> +typedef struct GDBusPropertyTable GDBusPropertyTable;
> +typedef gboolean (*GDBusPropertyGetter)(const GDBusPropertyTable *property,
> +					DBusMessageIter *iter, void *data);
> +
> +typedef gboolean (*GDBusPropertyExists)(const GDBusPropertyTable *property,
> +								void *data);
> +
>  typedef guint32 GDBusPendingReply;
>  
>  typedef void (* GDBusSecurityFunction) (DBusConnection *connection,
> @@ -102,11 +109,13 @@ typedef struct {
>  	const GDBusArgInfo *args;
>  } GDBusSignalTable;
>  
> -typedef struct {
> +struct GDBusPropertyTable {
>  	const char *name;
>  	const char *type;
> +	GDBusPropertyGetter get;
> +	GDBusPropertyExists exists;
>  	GDBusPropertyFlags flags;
> -} GDBusPropertyTable;
> +};

can we make this a bit cleaner and do it similar for all structs +
typedefs and not just make GDBusPropertyTable special.

Regards

Marcel



  reply	other threads:[~2012-07-24 13:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-24 10:46 [PATCH BlueZ v2 0/5] DBus.Properties Lucas De Marchi
2012-07-24 10:46 ` [PATCH BlueZ v2 1/5] gdbus: Add skeleton of DBus.Properties interface Lucas De Marchi
2012-07-24 10:46 ` [PATCH BlueZ v2 2/5] gdbus: Implement DBus.Properties.Get method Lucas De Marchi
2012-07-24 13:36   ` Marcel Holtmann [this message]
2012-07-24 10:46 ` [PATCH BlueZ v2 3/5] gdbus: Implement DBus.Properties.GetAll method Lucas De Marchi
2012-07-24 10:46 ` [PATCH BlueZ v2 4/5] gdbus: Implement DBus.Properties.Set method Lucas De Marchi
2012-07-24 10:46 ` [PATCH BlueZ v2 5/5] gdbus: Add properties into Introspectable interface Lucas De Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1343136978.24426.51.camel@aeonflux \
    --to=marcel@holtmann.org \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lucas.demarchi@profusion.mobi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox