On Fri, Aug 22, 2008 at 6:14 PM, Massimiliano Calamelli
<[EMAIL PROTECTED]> wrote:
> Hi all, i'm very happy to say that exchange library is now a little usable.
> For those who don't know what is exchange, this library is the client
> side of exchange.enlightenment.org , providing a set of API to
> interact with the server.
>
> This library now provide:
> * a CLI interface (exchange_cli), for shell scripting
> * a set of API, for new applications
>
> Here's a cut&paste for the CLI:
>
> [EMAIL PROTECTED]:~$ exchange_cli
> Usage:
>  exchange_cli -local_theme_name <theme file>
>  exchange_cli -local_theme_author <theme file>
>  exchange_cli -local_theme_version <theme file>
>  exchange_cli -local_theme_license <theme file>
>  exchange_cli -local_theme_check_update <theme file>
>  exchange_cli -remote_theme_id <theme name>
>  exchange_cli -remote_theme_author <theme name>
>  exchange_cli -remote_theme_license <theme name>
>  exchange_cli -remote_theme_version <theme name>
>  exchange_cli -remote_theme_description <theme name>
>  exchange_cli -remote_theme_url <theme name>
>  exchange_cli -remote_theme_thumbmnail <theme name>
>  exchange_cli -remote_theme_screenshot <theme name>
>  exchange_cli -remote_theme_user_id <theme name>
>  exchange_cli -remote_theme_created_at <theme name>
>  exchange_cli -remote_theme_updated_at <theme name>
> [EMAIL PROTECTED]:~$

Looks good, but I'd use getopt and different parameters, something like this:

     exchange_cli --theme=theme --request=author
or: excahgen_cli --request=author theme/target

making --request lookup the parameter inside a list of actions, this
will make easier to extend.


> Here's a cut&paste for the API:
...
> EAPI char *exchange_remote_theme_thumbnail_get(const char *theme_name);
> EAPI char *exchange_remote_theme_screenshot_get(const char *theme_name);

does screenshot and thumbnail download the file or no?

-- 
Gustavo Sverzut Barbieri
http://profusion.mobi embedded systems
--------------------------------------
MSN: [EMAIL PROTECTED]
Skype: gsbarbieri
Mobile: +55 (19) 9225-2202

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to