codec/codec_msg.c File Reference
Codec message covertion functions.
More...
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <codec_error.h>
#include <codec.h>
#include "codec_h_ctrl.h"
Include dependency graph for codec_msg.c:
Go to the source code of this file.
Functions |
int | system_error_to_codec_error (int error) |
| system_error_to_codec_error Convert system error to codec error types
|
const char * | codec_error_msg (int error) |
| codec_error_msg Convert codec type to error message
|
void | print_error_msg (int error, char *func, int line) |
| print_error_msg Print error message in uniform format
|
Detailed Description
Codec message covertion functions.
- Author:
- Zhang Chen <[email protected]>
- Version:
- 1.0.0
- Date:
- 2011-02-24
Definition in file codec_msg.c.
Function Documentation
const char* codec_error_msg |
( |
int |
error |
) |
|
void print_error_msg |
( |
int |
error, |
|
|
char * |
func, |
|
|
int |
line | |
|
) |
| | |
print_error_msg Print error message in uniform format
- Parameters:
-
[in] | error | Codec error type |
[in] | func | Function where error happens |
[in] | line | Line where error happens |
Definition at line 98 of file codec_msg.c.
Here is the call graph for this function:
int system_error_to_codec_error |
( |
int |
error |
) |
|
system_error_to_codec_error Convert system error to codec error types
- Parameters:
-
[in] | error | System error to be converted |
- Returns:
- Codec error type
Definition at line 34 of file codec_msg.c.
Referenced by codec_get_abuf_state(), codec_get_adec_state(), codec_get_cntl_state(), codec_get_sub_size(), codec_get_sub_size_fd(), codec_get_vbuf_state(), codec_get_vdec_state(), codec_init_cntl(), codec_init_sub(), codec_open_sub_read(), codec_read_sub_data(), codec_read_sub_data_fd(), and codec_reset().
Generated on Fri Feb 25 15:30:31 2011 for Amcodec by
1.6.1