diff options
author | Erik Walthinsen <omega@temple-baptist.org> | 2001-01-20 20:08:59 +0000 |
---|---|---|
committer | Erik Walthinsen <omega@temple-baptist.org> | 2001-01-20 20:08:59 +0000 |
commit | c824d8eaf90ddbaf025a446a9437d46e291ead90 (patch) | |
tree | 2ce6c3ca57716f17a441ee3f5d2c707c7a986c94 /docs/design/part-conventions.txt | |
parent | cfb7276682de51612000a1e955488d5d73d9f2af (diff) |
current set of design docs, in .txt format
Original commit message from CVS:
current set of design docs, in .txt format
Diffstat (limited to 'docs/design/part-conventions.txt')
-rw-r--r-- | docs/design/part-conventions.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/docs/design/part-conventions.txt b/docs/design/part-conventions.txt new file mode 100644 index 0000000000..da634b8f5a --- /dev/null +++ b/docs/design/part-conventions.txt @@ -0,0 +1,31 @@ +Documentation conventions +========================= + +Due to the potential for exponential growth, several abbreviating conventions will be used throughout this +documentation. These conventions have grown primarily from extremely in-depth discussions of the architecure in IRC. +This has verified the safety of these conventions, if used properly. There are no known namespace conflicts as long as +context is rigorously observed. + +Object classes +-------------- + +Since everything starts with Gst, we will generally refer to objects by the shorter name, i.e. Element or Pad. These +names will always have their first letter capitalized. + +Function names +-------------- + +Within the context of a given object, functions defined in that object's header and/or source file will have their +object-specific prefix stripped. For instance, gst_element_add_pad() would be referred to as simply _get_pad(). Note +that the trailing parentheses should always be present, but sometimes may not be. A prefixing underscore (_) will +always tell you it's a function, however, regardless of the presence or absence of the trailing parentheses. + +#defines and enums +------------------ + +Values and macros defined as enums and preprocessor macros will be referred to in all capitals, as per their +definition. This includes object flags and element states, as well as general enums. Examples are the states NULL, +READY, PLAYING, and PAUSED; the element flags DECOUPLED and USE_COTHREAD, and state return values SUCCESS, FAILURE, and +ASYNC. Where there is a prefix, as in the element flags, this is usually dropped, and implied. Not however that +element flags should be cross-checked with the header, as there are currently two conventions in use: with and without +_FLAGS_ in the middle. |