:: Re: [DNG] Vdev [ was Re: if2mac ini…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: aitor
日付:  
To: dng
題目: Re: [DNG] Vdev [ was Re: if2mac init.d service for persistent network interface names]
Hi,

Looking at the code of vdev, I've found an interesting library unknown
until now for me:

http://sglib.sourceforge.net/doc/index.html#array_exam
<http://sglib.sourceforge.net/doc/index.html#array_exam>

Sglib consists of a single header file written in C, and Jude Nelson
includes it in libvdev:

https://github.com/jcnelson/vdev/blob/master/libvdev/sglib.h
<https://github.com/jcnelson/vdev/blob/master/libvdev/sglib.h>

This header provides generic implementation of most common algorithms
for arrays and lists.
In our case, it allows the use of some functions analogous to the type
and use of std::vector in C++:

 - sglib_cstr_vector_init ( ... )

 - sglib_cstr_vector_push_back ( ... )

 - sglib_cstr_vector_size ( ... )

 - sglib_cstr_vector_free ( ... )

Anybody knows where can i find more information about this library?

Cheer,

Aitor.