rem: type = cd_detect_type_from_dir (argv[1], &url, &error);
add: type = totem_cd_detect_type_from_dir (argv[1], &url, &error);
context: main (gint   argc,      gchar *argv[]){  MediaType type;  GError *error = NULL;  const char *type_s = NULL;  char *url = NULL;  gboolean is_dir = FALSE;  if (argc != 2) {    g_print ("Usage: %s <device>\n", argv[0]);    return -1;  }  g_type_init ();  gnome_vfs_init ();  if (g_file_test (argv[1], G_FILE_TEST_IS_DIR) != FALSE) {    type = cd_detect_type_from_dir (argv[1], &url, &error);    is_dir = TRUE;  } else {    type = cd_detect_type (argv[1], &error);  }  switch (type) {    case MEDIA_TYPE_ERROR:      g_print ("Error: %s\n", error ? error->message : "unknown reason");      return -1;    case MEDIA_TYPE_DATA:      type_s = "Data CD";      break;    case MEDIA_TYPE_CDDA:      type_s = "Audio CD";      break;    case MEDIA_TYPE_VCD:      type_s = "Video CD";      break;    case MEDIA_TYPE_DVD:      type_s = "DVD";      break;    default:      g_assert_not_reached ();  }  g_print ("%s contains a %s\n", argv[1], type_s);  if (is_dir != FALSE && url != NULL) {    g_print ("URL for directory is %s\n", url);  }  g_free (url);  return 0;}