/** * g_mount_operation_get_password: * @op: a #GMountOperation. * * Gets a password from the mount operation. * * Returns: a string containing the password within @op. **/ const char * g_mount_operation_get_password (GMountOperation *op) { g_return_val_if_fail (G_IS_MOUNT_OPERATION (op), NULL); return op->priv->password; }
/** * g_mount_operation_get_username: * @op: a #GMountOperation. * * Get the user name from the mount operation. * * Returns: a string containing the user name. **/ const char * g_mount_operation_get_username (GMountOperation *op) { g_return_val_if_fail (G_IS_MOUNT_OPERATION (op), NULL); return op->priv->user; }
GPasswordSave g_mount_operation_get_password_save (GMountOperation *op) { g_return_val_if_fail (G_IS_MOUNT_OPERATION (op), G_PASSWORD_SAVE_NEVER); return op->priv->password_save; }
/** * g_mount_operation_get_choice: * @op: a #GMountOperation. * * Gets a choice from the mount operation. * * Returns: an integer containing an index of the user's choice from * the choice's list, or %0. **/ int g_mount_operation_get_choice (GMountOperation *op) { g_return_val_if_fail (G_IS_MOUNT_OPERATION (op), 0); return op->priv->choice; }
/** * g_mount_operation_get_anonymous: * @op: a #GMountOperation. * * Check to see whether the mount operation is being used * for an anonymous user. * * Returns: %TRUE if mount operation is anonymous. **/ gboolean g_mount_operation_get_anonymous (GMountOperation *op) { g_return_val_if_fail (G_IS_MOUNT_OPERATION (op), FALSE); return op->priv->anonymous; }