Am 06/06/2011 02:10 PM, schrieb Laurent Gauch:
>   Yes, this is to decouple the open and init (open the handle, init
> the associated specific layout).

Is there case where open is used without init, or init without open?

Otherwise, this is just unnecessarily complex.

> (more smaller function ... as good OO coding !)
>
> The ft2232_init_sub(void) and ft2232_init() could be merged again in a
> ft2232_open if needed
>
> But yes, we have all different point of view regarding what is open
> what is init ...
>
> The objective is to have something like :
>
> open
>   init
>   deinit
> close
>
> and not as the actual
> init
> quit

open/close instead of init/quit is OK with me, but what is the advantage
of the 4-function API instead of the old 2-function API?

cu
Michael

_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to