]> git.alsa-project.org Git - alsa-gobject.git/commitdiff
hwdep: device-info: add annotation to object properties
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)
committerTakashi Sakamoto <o-takashi@sakamocchi.jp>
Mon, 20 Jun 2022 09:44:49 +0000 (18:44 +0900)
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
src/hwdep/device-info.c

index c2924880a6b824829003eab8290b97dda0c511c0..e4178a68ce042da8c16851c809f5a7b4c457f401 100644 (file)
@@ -88,36 +88,60 @@ static void alsahwdep_device_info_class_init(ALSAHwdepDeviceInfoClass *klass)
     gobject_class->set_property = hwdep_device_info_set_property;
     gobject_class->get_property = hwdep_device_info_get_property;
 
+    /**
+     * ALSAHwdepDeviceInfo:device-id:
+     *
+     * The numeric ID of device.
+     */
     hwdep_device_info_props[HWDEP_DEVICE_INFO_PROP_DEVICE_ID] =
         g_param_spec_uint("device-id", "device-id",
-                          "The numerical ID of device.",
+                          "The numeric ID of device.",
                           0, G_MAXUINT,
                           0,
                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
+    /**
+     * ALSAHwdepDeviceInfo:card-id:
+     *
+     * The numeric ID of sound card.
+     */
     hwdep_device_info_props[HWDEP_DEVICE_INFO_PROP_CARD_ID] =
         g_param_spec_int("card-id", "card-id",
-                         "The numerical ID of sound card.",
+                         "The numeric ID of sound card.",
                          G_MININT, G_MAXINT,
                          0,
                          G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
+    /**
+     * ALSAHwdepDeviceInfo:id:
+     *
+     * The string ID of the hwdep device.
+     */
     hwdep_device_info_props[HWDEP_DEVICE_INFO_PROP_ID] =
         g_param_spec_string("id", "id",
-                            "The ID string of the hwdep device",
+                            "The string ID of the hwdep device",
                             "",
                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
+    /**
+     * ALSAHwdepDeviceInfo:name:
+     *
+     * The name of the hwdep device.
+     */
     hwdep_device_info_props[HWDEP_DEVICE_INFO_PROP_NAME] =
         g_param_spec_string("name", "name",
                             "The name of the hwdep device",
                             "",
                             G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);
 
+    /**
+     * ALSAHwdepDeviceInfo:iface:
+     *
+     * The type of interface for the hwdep device, one of ALSAHwdepIfaceType.
+     */
     hwdep_device_info_props[HWDEP_DEVICE_INFO_PROP_IFACE] =
         g_param_spec_enum("iface", "iface",
-                          "The type of interface for the hwdep device, one of "
-                          "ALSAHwdepIfaceType.",
+                          "The type of interface for the hwdep device, one of ALSAHwdepIfaceType.",
                           ALSAHWDEP_TYPE_IFACE_TYPE,
                           SNDRV_HWDEP_IFACE_OPL2,
                           G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY);