/* Returns: a newly allocated string containing the requested identfier, or NULL if the #GDrive doesn't have this kind of identifier.  */
char* g_drive_get_identifier(GDrive *drive, const char *kind)
/* Returns: a newly allocated string containing the requested identfier, or NULL if the #GDrive doesn't have this kind of identifier.  */
char* g_drive_get_identifier(GDrive *drive, const char *kind)
{
  GDriveIface *iface;
  g_return_val_if_fail (G_IS_DRIVE (drive), NULL);
  g_return_val_if_fail (kind != NULL, NULL);
  iface = G_DRIVE_GET_IFACE (drive);
  if (iface->get_identifier == NULL)
    return NULL;
  return (* iface->get_identifier) (drive, kind);
}