/src/wrappers/gobject/library/g_parameter.e

http://github.com/tybor/Liberty · Specman e · 42 lines · 24 code · 8 blank · 10 comment · 0 complexity · 604c4429e9f93a9d34b32d1025ee55ce MD5 · raw file

  1. indexing
  2. copyright: "(C) 2005 Paolo Redaelli "
  3. license: "LGPL v2 or later"
  4. date: "$Date:$"
  5. revision "$REvision:$"
  6. description: "G_PARAMETER is an auxiliary data type (structure) used to hand parameter name/value to the creation feature of a G_OBJECT."
  7. class G_PARAMETER
  8. -- An auxiliary data type (structure) used to hand parameter
  9. -- name/value to the creation feature of a G_OBJECT.
  10. inherit
  11. C_STRUCT
  12. EIFFEL_OWNED
  13. insert
  14. G_PARAMETER_EXTERNALS
  15. creation from_external_pointer
  16. feature
  17. name: STRING is
  18. -- the parameter name
  19. do
  20. create {CONST_STRING} Result.from_external(get_name(handle))
  21. end
  22. -- typedef struct {
  23. -- const gchar *name;
  24. -- GValue value;
  25. -- } GParameter;
  26. -- gparameter: POINTER to GParameter
  27. -- const gchar *name; the parameter name
  28. -- GValue value; the parameter value
  29. feature -- size
  30. struct_size: INTEGER is
  31. external "C inline use <glib-object.h>"
  32. alias "sizeof(GParameter)"
  33. end
  34. end