Changeset 5312:27ec111dc8c5 in roaraudio for libroar/error.c
- Timestamp:
- 11/30/11 01:05:41 (12 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/error.c
r5295 r5312 866 866 } 867 867 868 // Resets the stored state to 'no error' state. This can be used 869 // to init the state. 870 int 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 } 868 885 869 886 // store a error state (both libroar and system)
Note: See TracChangeset
for help on using the changeset viewer.