[gst-devel] Header file restructuring needed

Erik Walthinsen omega at temple-baptist.com
Thu Feb 15 22:19:52 CET 2001

On Wed, 14 Feb 2001, Brent Bradburn wrote:

>  - It's ok to have long filenames like gstelement_private.h.
Yeah, I just think it gets messy after a while.

>  - Include files should end in .h.

>  - If you don't need to reference private data from multiple files, just use
> the .c file.
Yup, though there's enough cross-source usage that almost all of the
private stuff has to be in a header.

>  - Put the public headers in a /pub directory and reference them like
> "pub/GstElement.h".
>      - This helps to distinguish public interfaces by collecting them all in
> one place.
This doesn't work in the automake environment very well.  The specific
reason is that the 'official' name for the headers is <gst/gst*.h>.  This
convention is used in every single file in the distribution except
gst/*.[ch], which uses "gst*.h".  Moving and of the header files breaks
both of these, and makes installation via automake messy.

      Erik Walthinsen <omega at temple-baptist.com> - System Administrator
       /  \                GStreamer - The only way to stream!
      |    | M E G A        ***** http://gstreamer.net/ *****
      _\  /_

More information about the gstreamer-devel mailing list