[procps] Re: Old library calls

  • From: Craig Small <csmall-procps@xxxxxxxxxx>
  • To: procps@xxxxxxxxxxxxx
  • Date: Tue, 3 Jul 2012 20:57:43 +1000

On Mon, Jul 02, 2012 at 09:21:42PM +0200, Karel Zak wrote:
>  Please, design the library in extendible way, hide all details and
>  *don't export any struct members* by the API, always use functions,
>  don't use typedef for structs, for example something like:
[...]
>     printf("Free: %ull\n", procps_sysmem_get_free(m));
So procps_sysmem_get_free(m) is better than m->free ?
I think that's what you are saying.

>  Yep, it's better to use the library within the package before you
>  mark the API as stable.
It might involve  having two branches in git, but that's doable.

 - Craig

-- 
Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5

Other related posts: