Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7713187
libodraw_error.c
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Size
2 KB
Referenced Files
None
Subscribers
None
libodraw_error.c
View Options
/*
* Error functions
*
* Copyright (c) 2010-2011, 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 <types.h>
#include <liberror.h>
#include <stdio.h>
#include "libodraw_error.h"
#if !defined( HAVE_LOCAL_LIBODRAW )
/* Free an error and its elements
*/
void libodraw_error_free(
libodraw_error_t **error )
{
liberror_error_free(
(liberror_error_t **) error );
}
/* Prints a descriptive string of the error to the stream
* Returns the number of printed characters if successful or -1 on error
*/
int libodraw_error_fprint(
libodraw_error_t *error,
FILE *stream )
{
return( liberror_error_fprint(
(liberror_error_t *) error,
stream ) );
}
/* Prints a descriptive string of the error to the string
* Returns the number of printed characters if successful or -1 on error
*/
int libodraw_error_sprint(
libodraw_error_t *error,
char *string,
size_t size )
{
return( liberror_error_sprint(
(liberror_error_t *) error,
string,
size ) );
}
/* Prints a backtrace of the error to the stream
* Returns the number of printed characters if successful or -1 on error
*/
int libodraw_error_backtrace_fprint(
libodraw_error_t *error,
FILE *stream )
{
return( liberror_error_backtrace_fprint(
(liberror_error_t *) error,
stream ) );
}
/* Prints a backtrace of the error to the string
* Returns the number of printed characters if successful or -1 on error
*/
int libodraw_error_backtrace_sprint(
libodraw_error_t *error,
char *string,
size_t size )
{
return( liberror_error_backtrace_sprint(
(liberror_error_t *) error,
string,
size ) );
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c
Expires
Fri, Nov 21, 7:17 PM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1361393
Default Alt Text
libodraw_error.c (2 KB)
Attached To
Mode
rXMOUNT xmount
Attached
Detach File
Event Timeline
Log In to Comment