This site has been retired. For up to date information, see handbook.gnome.org or gitlab.gnome.org.


[Home] [TitleIndex] [WordIndex

Rygel CodingStyle

            this.some_member = "value";
            this.some_method_call (a, b, c);

            some_object.some_method_call (a,
                                          b,
                                          c,
                                          d,
                                          e,
                                          f);

        public void some_method_with_very_long_name
                                        (int some_argument_with_long_name,
                                         int another_argument);

        this.action.get ("ObjectID",
                             typeof (string),
                             out this.object_id,
                         "Filter", 
                             typeof (string),
                             out this.filter,
                         "StartingIndex",
                             typeof (uint),
                             out this.index,
                         "RequestedCount",
                             typeof (uint),
                             out this.requested_count,
                         "SortCriteria",
                             typeof (string),
                             out this.sort_criteria);

        public void some_method (int some_variable_with_long_name,
                                 int another_variable) throws Error;
        public void some_method (WithAReallyLongSingleArgument arg)
                                 throws Error;
        public void some_method_with_a_very_long_name_that_throws_error ()
                                        throws Error;

                                some_object.some_method ("A very long string" +
                                                         " that doesn't fit " +
                                                         " in one line.");

   // Fetch the document
   fetch_the_document ();

   public class Rygel.Hello {
   ...
   };

    if (condition_applies ()) {
      do_something ();

      return false;
    }

    if (other_condition_applies ()) {
      return true;
    }

2024-10-23 11:37