Changeset 5154:7613f2bbf1c3 in roaraudio


Ignore:
Timestamp:
10/15/11 16:13:41 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

commited stuff we forget on our last error stuff commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/libroar/error.h

    r5146 r5154  
    6767}; 
    6868 
     69struct roar_error_state { 
     70 size_t refc; 
     71 int libroar_error; 
     72 int system_errno; 
     73}; 
     74 
    6975struct roar_error_frame * roar_err_errorframe(void); 
    7076 
     
    9298 
    9399// test of system's error value is set to 'no error' 
     100int    roar_err_is_errno_clear(void); 
     101 
     102// old, use roar_err_is_errno_clear(). 
    94103int    roar_err_is_errno_clean(void); 
    95104 
     
    103112void   roar_err_to_errno(void); 
    104113 
     114// store a error state (both libroar and system) 
     115// returnes the error or ROAR_ERROR_NONE on success so it does not alter gloabl error state. 
     116int    roar_err_store(struct roar_error_state * state); 
     117 
     118// restore error state to values at time of call to roar_err_store() 
     119// returnes the error or ROAR_ERROR_NONE on success so it does not alter gloabl error state. 
     120int    roar_err_restore(struct roar_error_state * state); 
     121 
    105122// Return a string descriping the error 
    106123const char * roar_error2str(const int error); 
Note: See TracChangeset for help on using the changeset viewer.