#!/usr/bin/env perl #-*- Mode: perl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- # Detect, print and manipulate local removable media devices. # # Copyright (C) 2000-2001 Ximian, Inc. # # Authors: Hans Petter Jansson # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Library General Public License as published # by the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Library General Public License for more details. # # You should have received a copy of the GNU Library General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. $SCRIPTSDIR = "@scriptsdir@"; if ($SCRIPTSDIR =~ /^@scriptsdir[@]/) { $SCRIPTSDIR = "."; $DOTIN = ".in"; } require "$SCRIPTSDIR/be.pl$DOTIN"; require "$SCRIPTSDIR/media.pl$DOTIN"; # gst_removable_media_get_list # # Return a list of hashes describing the removable media devices present # on this machine. sub gst_removable_media_get_list { my @devices; @devices = &gst_media_get_list(); # TODO: Weed out fixed media. return @devices; } # gst_removable_media_xml_print # # Given a media hash-list, prints the removables inside a tag # pair, using current indent levels. sub gst_removable_media_xml_print { &gst_xml_print_vspace (); &gst_xml_print_line ("\n"); &gst_xml_enter (); &gst_xml_leave (); &gst_xml_print_line ("\n"); &gst_xml_print_vspace (); }