Back to index

php5  5.3.10
Functions
zip_error.c File Reference
#include <stdlib.h>
#include "zipint.h"

Go to the source code of this file.

Functions

void _zip_error_clear (struct zip_error *err)
void _zip_error_copy (struct zip_error *dst, struct zip_error *src)
void _zip_error_fini (struct zip_error *err)
void _zip_error_get (struct zip_error *err, int *zep, int *sep)
void _zip_error_init (struct zip_error *err)
void _zip_error_set (struct zip_error *err, int ze, int se)

Function Documentation

void _zip_error_clear ( struct zip_error err)

Definition at line 43 of file zip_error.c.

{
    err->zip_err = ZIP_ER_OK;
    err->sys_err = 0;
}

Here is the caller graph for this function:

void _zip_error_copy ( struct zip_error dst,
struct zip_error src 
)

Definition at line 52 of file zip_error.c.

{
    dst->zip_err = src->zip_err;
    dst->sys_err = src->sys_err;
}

Here is the caller graph for this function:

void _zip_error_fini ( struct zip_error err)

Definition at line 61 of file zip_error.c.

{
    free(err->str);
    err->str = NULL;
}

Here is the caller graph for this function:

void _zip_error_get ( struct zip_error err,
int zep,
int sep 
)

Definition at line 70 of file zip_error.c.

{
    if (zep)
       *zep = err->zip_err;
    if (sep) {
       if (zip_error_get_sys_type(err->zip_err) != ZIP_ET_NONE)
           *sep = err->sys_err;
       else
           *sep = 0;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:

void _zip_error_init ( struct zip_error err)

Definition at line 85 of file zip_error.c.

{
    err->zip_err = ZIP_ER_OK;
    err->sys_err = 0;
    err->str = NULL;
}

Here is the caller graph for this function:

void _zip_error_set ( struct zip_error err,
int  ze,
int  se 
)

Definition at line 95 of file zip_error.c.

{
    if (err) {
       err->zip_err = ze;
       err->sys_err = se;
    }
}