mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
31 lines
619 B
C++
31 lines
619 B
C++
/*
|
|
mkvmerge -- utility for splicing together matroska files
|
|
from component media subtypes
|
|
|
|
error.h
|
|
class definitions for the error class
|
|
|
|
Written by Moritz Bunkus <moritz@bunkus.org>
|
|
|
|
Distributed under the GPL
|
|
see the file COPYING for details
|
|
or visit http://www.gnu.org/copyleft/gpl.html
|
|
*/
|
|
|
|
#ifndef __ERROR_H__
|
|
#define __ERROR_H__
|
|
|
|
#include <malloc.h>
|
|
#include <string.h>
|
|
|
|
class error_c {
|
|
private:
|
|
char *error;
|
|
public:
|
|
error_c(char *nerror) { error = strdup(nerror); };
|
|
~error_c() { free(error); };
|
|
char *get_error() { return error; };
|
|
};
|
|
|
|
#endif // __ERROR_H__
|