Lines Matching defs:media_num
1734 int media_num;
1737 media_num = hal_device_property_get_int (d, "storage.solaris.legacy.media_num");
1739 (media_num >= 0)) {
1740 en->nums = g_slist_prepend (en->nums, GINT_TO_POINTER(media_num));
1746 devinfo_storage_append_nickname (HalDevice *d, const char *media_type, int media_num)
1750 if (media_num == 0) {
1753 snprintf(buf, sizeof (buf), "%s%d", media_type, media_num);
1762 int media_num;
1778 for (media_num = 0; ; media_num++) {
1780 if (GPOINTER_TO_INT (i->data) == media_num) {
1791 hal_device_property_set_int (d, "storage.solaris.legacy.media_num", media_num);
1794 snprintf(buf, sizeof (buf), "%s%d", media_type, media_num);
1796 devinfo_storage_append_nickname(d, media_type, media_num);
1800 devinfo_storage_append_nickname(d, "cd", media_num);
1801 devinfo_storage_append_nickname(d, "sr", media_num);
1803 devinfo_storage_append_nickname(d, "fd", media_num);
1804 devinfo_storage_append_nickname(d, "diskette", media_num);
1805 devinfo_storage_append_nickname(d, "rdiskette", media_num);