LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Publishing an interface to a shared C lib.

[ILUG] Publishing an interface to a shared C lib.

Pádraig Brady P at draigBrady.com
Fri Nov 17 16:40:42 GMT 2006


Conor Daly wrote:
> I don't want to require users to 
> #include <metdate.h>
> #include <datahandle.h>
> #include <qcrun.h>
> 
> Instead they should 
> 
> #include <libqc.h>
> 
> which will include all the stuff.  However, should users be able to look
> in libqc.h and see the function declarations and associated commentary?

no need

> Or should they see references to metdate.h, datahandle.h and qcrun.h and
> look in there for the details.

yes, and easy with "gf" in vim, or ctags, or ...

Also if you look at existing libraries like gtk:

#ifndef __GTK_H__
#define __GTK_H__

#include <gdk/gdk.h>
#include <gtk/gtkaboutdialog.h>
/* loads more snipped */
#include <gtk/gtkwindow.h>

#endif /* __GTK_H__ */

Pádraig.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell