Page MenuHomePhabricator

libsmdev_legacy.c
No OneTemporary

Size
2 KB
Referenced Files
None
Subscribers
None

libsmdev_legacy.c

/*
* Legacy functions
*
* Copyright (c) 2010-2012, Joachim Metz <jbmetz@users.sourceforge.net>
*
* Refer to AUTHORS for acknowledgements.
*
* This software is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This software 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 General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this software. If not, see <http://www.gnu.org/licenses/>.
*/
#include <common.h>
#include <memory.h>
#include <types.h>
#include <liberror.h>
#include "libsmdev_legacy.h"
#include "libsmdev_metadata.h"
#include "libsmdev_types.h"
#if !defined( HAVE_LOCAL_LIBSMDEV )
/* Retrieves an UTF-8 encoded information value for the specific identifier
* The value size should include the end of string character
* Returns 1 if successful, 0 if value not present or -1 on error
*/
int libsmdev_handle_get_information_value(
libsmdev_handle_t *handle,
const uint8_t *information_value_identifier,
size_t information_value_identifier_length,
uint8_t *information_value,
size_t information_value_size,
liberror_error_t **error )
{
return( libsmdev_handle_get_utf8_information_value(
handle,
information_value_identifier,
information_value_identifier_length,
information_value,
information_value_size,
error ) );
}
/* Retrieves the amount of read/write error retries
* Returns the 1 if succesful or -1 on error
*/
int libsmdev_handle_get_amount_of_error_retries(
libsmdev_handle_t *handle,
uint8_t *amount_of_error_retries,
liberror_error_t **error )
{
return( libsmdev_handle_get_number_of_error_retries(
handle,
amount_of_error_retries,
error ) );
}
/* Sets the amount of read/write error retries
* Returns the 1 if succesful or -1 on error
*/
int libsmdev_handle_set_amount_of_error_retries(
libsmdev_handle_t *handle,
uint8_t amount_of_error_retries,
liberror_error_t **error )
{
return( libsmdev_handle_set_number_of_error_retries(
handle,
amount_of_error_retries,
error ) );
}
#endif /* !defined( HAVE_LOCAL_LIBSMDEV ) */

File Metadata

Mime Type
text/x-c
Expires
Fri, Nov 21, 7:15 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361386
Default Alt Text
libsmdev_legacy.c (2 KB)

Event Timeline