Changeset 5312:27ec111dc8c5 in roaraudio for libroar/error.c


Ignore:
Timestamp:
11/30/11 01:05:41 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

added support for seperate contextes for roardl/plugins. Currently incudes error state and a global per handle data segment. This does not work for statically linked librarys (yet). support for per-context notify core needs to be added/completed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/error.c

    r5295 r5312  
    866866} 
    867867 
     868// Resets the stored state to 'no error' state. This can be used 
     869// to init the state. 
     870int    roar_err_initstore(struct roar_error_state * state) { 
     871 struct roar_error_state curstate; 
     872 
     873 if ( state == NULL ) { 
     874  roar_err_set(ROAR_ERROR_FAULT); 
     875  return -1; 
     876 } 
     877 
     878 roar_err_store(&curstate); 
     879 roar_err_clear_all(); 
     880 roar_err_store(state); 
     881 roar_err_restore(&curstate); 
     882 
     883 return -1; 
     884} 
    868885 
    869886// store a error state (both libroar and system) 
Note: See TracChangeset for help on using the changeset viewer.