[gst-devel] Coding convention of starting every function with gst_

Benjamin Otte in7y118 at public.uni-hamburg.de
Tue Mar 23 10:17:34 CET 2004


On Sun, 21 Mar 2004, Ronald S. Bultje wrote:

> On Sun, 2004-03-21 at 23:56, Ramón García wrote:
> > Does this convention apply to static functions as
> > well?
>
> For plugins/core, we currently do this, yes. It's not written down that
> it applies, but just do it. For applications, there's no rules, you're
> free to do whatever you wish.
>
Not really. Some of them are called that way, some of them aren't.

My opinion:
As long as there are no namespace issues (which is the case for static
functions) people are free to name their functions any way they like. It
helps to use descriptive non-simple names though, because of debugging
(and namespace issues in the debugger), but I wouldn't require it.

Benjamin





More information about the gstreamer-devel mailing list