Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#25621 - 27/01/2001 07:52 Converting emptool to C
stil
stranger

Registered: 01/10/1999
Posts: 31
Loc: Fort Lauderdale, FL
Today I'm starting to convert the emptool source code to C. I'd just like to find out if anyone else has started such a project, so I know I'm not duplicating anyone else's efforts. My goal is to create a simple set of libraries that programmers can use to talk to the empeg. I'll probably need testers later on, too, since I only have a MK1 and two host systems to test.

I'll post back here as soon as I have some results!


Top
#25622 - 27/01/2001 09:02 Re: Converting emptool to C [Re: stil]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
You may consider waiting until 1.1 is released - a lot has changed and the 1.0 protocol is not forwardly compatible. I'm not entirely clear on what the problem is with the current C++ source, though. Why do you want to rewrite it in C?

Rob



Top
#25623 - 27/01/2001 09:28 Re: Converting emptool to C [Re: rob]
stil
stranger

Registered: 01/10/1999
Posts: 31
Loc: Fort Lauderdale, FL
The idea is that C is much easier to bind other languages to than C++, and I'd like to use the resulting libraries as a basis for a GUI uploader. Actually my first goal is merely to wrap libempeg_core, libempeg_protocol, and libempeg_net with a C interface. That's MUCH less work than actually converting all the code to C, less bug-prone, and will probably be enough to bind the libs to python and/or perl.


Top
#25624 - 27/01/2001 17:49 Re: Converting emptool to C [Re: stil]
rob
carpal tunnel

Registered: 21/05/1999
Posts: 5335
Loc: Cambridge UK
Hmm, OK, but for most GUI platforms it would seem likely that C++ would be the ideal language in which to write that front end. If you must work in C then I guess wrapping the existing protocol source would be the best approach, as this code is likely to change regularly.

Rob



Top
#25625 - 28/01/2001 10:58 Re: Converting emptool to C [Re: rob]
stil
stranger

Registered: 01/10/1999
Posts: 31
Loc: Fort Lauderdale, FL
Hmm.. youre probably right. Having taken a closer look at the code, it doesn't seem like wrapping it in C is really such a good idea anymore. I'll give the existing C++ stuff a try.

Project 1 for me is something I find myself needing more and more: A non-interactive emptool. Basically this will read a config file which describes the layout I want on the empeg, and then sync the empeg to this layout. I'll post the results here when I'm done.


Top
#25626 - 28/01/2001 11:29 Re: Converting emptool to C [Re: stil]
mschrag
pooh-bah

Registered: 09/09/2000
Posts: 2303
Loc: Richmond, VA
This is definitely possible with the current C++ libraries.. The concept of interactivity is not specified at all in the protocol/net libraries. In fact, in the source release, you'll see that the only interactivity appears in car-support (basically the actual implementation of the emptool front-end).

ms


Top
#25627 - 29/01/2001 04:21 Re: Converting emptool to C [Re: mschrag]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
Surely you can bind Python and Perl to C++ libraries? How on earth do the Qt bindings work otherwise?

My goal is to create a simple set of libraries that programmers can use to talk to the empeg.

That was our goal too.

Peter



Top