/Users/huttone/Devel/sedflux-new/sedflux/trunk/ew/sedflux/my_sedflux.c

Go to the documentation of this file.
00001 #include <glib.h>
00002 #include <sed/sed_sedflux.h>
00003 #include "my_sedflux.h"
00004 
00005 void
00006 my_hook( Sed_process_queue q )
00007 {
00008    if ( q )
00009    {
00010       gssize i;
00011       Failure_proc_t** data;
00012       Sed_process d = sed_process_queue_find_nth_obj( q , "debris flow"       , 0 );
00013       Sed_process t = sed_process_queue_find_nth_obj( q , "turbidity current" , 0 );
00014       Sed_process s = sed_process_queue_find_nth_obj( q , "slump"             , 0 );
00015 
00016       data = (Failure_proc_t**)sed_process_queue_obj_data( q , "failure" );
00017       for ( i=0 ; data && data[i] ; i++ )
00018       {
00019          data[i]->debris_flow       = d;
00020          data[i]->turbidity_current = t;
00021          data[i]->slump             = s;
00022       }
00023       eh_free( data );
00024    }
00025 
00026    return;
00027 }
00028 

Generated on Fri Jan 4 18:04:15 2008 for sedflux by  doxygen 1.5.2