Re: [PATCH] Introduce vnc_util_get_version() functions to get version
- From: Jonh Wendell <jwendell gnome org>
- To: Michal Novotny <minovotn redhat com>
- Cc: gtk-vnc-list gnome org
- Subject: Re: [PATCH] Introduce vnc_util_get_version() functions to get version
- Date: Thu, 30 Sep 2010 09:45:19 -0300
Em Qui, 2010-09-30 às 14:15 +0200, Michal Novotny escreveu:
> On 09/30/2010 02:18 PM, Jonh Wendell wrote:
> > Em Qui, 2010-09-30 às 13:59 +0200, Michal Novotny escreveu:
> >
> >> Hi,
> >> this is the patch to allow user to get the GTK-VNC version using the
> >> vnc_util_get_version() and vnc_util_get_version_string() functions.
> >> Both the functions returns the version numbers based on the VERSION
> >> definition as created by autotools.
> >>
> > Hello.
> >
> > Why not having defines instead? Just like gtk+ does?
> > http://git.gnome.org/browse/gtk+/tree/gtk/gtkversion.h.in
> >
> > Cheers,
> >
> Hi,
> this is the other option we could have nevertheless I don't know what's
> better.
Thinking about bindings, it's better to stick with the functions...
About the patch, three notes:
1) str must be freed with g_strfreev
2) retVal should be renamed to ret_val or just ret?
3) about vnc_util_get_version_string(), couldn't it return a const gchar
* (return VERSION;)?
Cheers,
--
Jonh Wendell
http://www.bani.com.br
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]