[Y-devel] libYc-0.1

Peter Prohaska pitrp at wg78.de
Thu Feb 26 18:49:22 GMT 2004


On Thu, Feb 26, 2004 at 04:51:48PM +0000, Richard Hills wrote:
> How does this look?
> libYc/Versions:
> 
> "LIBY_0.2_0 {

Shouldn't the 0.2_0 version stay alive for the moment in case some
people started experimenting with the libYc? (probably not)

Why not add a LIBYC_0.2_1 definition?
One can probably just drop the old interface in this stage of
development, but i would raise the verion number in any case.

>         global:
>                 _init;
>                 _fini;
>                 Y_Initialise;
>                 Y_Finalise;
>  
> /* Fairly low level - these shouldn't be publicly available, will be
> removed */

Havn't thought too much about that but i sounds right.
You could just drop them un the 0.2_1 verion and leave them enachled in
the 0.2_0 version (if you decide to keep it in the first place).
If I remember correctly, those aren't public in the c++ too.
My suggestion:
Drop them before someonse relies on them. You can still readd them
later.

>                 ySend;
>                 yReceive;
>                 yRegisterFD;
>                 yChangeFD;
>                 yUnregisterFD;
>  
> /* Generic object, property, method and signaling functions */
>                 Y_FindClassId;
>                 Y_Run;
>                 Y_Iterate;
>                 YObject_Create;
>                 YObject_CreateFromClassName;

Going with "Y_" instead of the "more accurate" c++ mapping "YY_", i see.
This is the way to go, if you ask me. Great.

> /* I don't think _Subscibe should be available - always use _Connect */

I cannot comment on this at the moment. I have no idea :)

>                 YSignal_Connect;
>                 YSignal_Subscribe;
>                 YObject_SetProperty;
>                 YObject_InvokeMethod;
>  
> /* Specific widgets */
>                 YWindow_Create;
>                 YWindow_Show;
>                 YWindow_SetChild;
>                 YButton_Create;
>                 YGridlayout_Create;
>                 YGridlayout_AddWidget;

The only slight difference i notice is the the "methond" names are
Capitalised. But gain... The right decicion for me. I think it
is more intuitive and fits C better than yust mapping the "methods names
start lowercase" aproach.

[..]
>         I'm going to release the next version when I get a reply from another
> email about seperate libs (I'd rather it wasn't a patch, but simply a
> module you can install seperately from Y), which will hopefully be later
> today or tomorrow. I'll need somewhere to host it, which is a problem
> for me since I can't run webservers here etc. Maybe it could be hosted
> on www.y-windows.org :) ?

I see... the mail mentioning pkg-config i guess. That would be a good
thing, but it wouldn't change much. The only changes you'd have to make
would go into your Makefile.am / configure.ac. Nothing too complicated.
 
Concerning hosting... perhaps we shold start a seperate more general
thread to see what other sugest. Perhaps it would also be interesting to
see if there sould be a uniqu way for symbol versioning. i.e.
LIB<xyz>_<Yversion>_<Libversion>. The problem with that naming scheme is
that not all new Y versions will lead to changes in the libs.

Rational:
- raise the version number (in what ever way you feel is right)
- every thing alse beautiful
- send a tarbale and i'll have some fun :)

Thanks for creating a C interface,
  peter.



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved