libdsi.c

Go to the documentation of this file.
00001 /* $Id: libdsi.c 18323 2004-10-04 14:42:33Z jork $ */
00002 /*****************************************************************************/
00003 /*! 
00004  * \file dsi/lib/src/libdsi.c
00005  *
00006  * \brief       DROPS Stream Interface. Initialization and global stuff
00007  *
00008  * \author      Lars Reuther <reuther@os.inf.tu-dresden.de>
00009  * \date        07/01/2000
00010  *
00011  */
00012 /*****************************************************************************/
00013 
00014 /* library includes */
00015 #include "__socket.h"
00016 #include "__app.h"
00017 #include "__dataspace.h"
00018 #include "__event.h"
00019 #include "__error.h"
00020 #include <l4/dsi/dsi.h>
00021 
00022 static int initialized;
00023 
00024 /*!\brief Library initialization.
00025  * \ingroup general
00026  */
00027 int
00028 dsi_init(void)
00029 {
00030   if(initialized) return 0;
00031   initialized=1;
00032 
00033   /* init error messages */
00034   dsi_init_error();
00035 
00036   /* init dataspace handling */
00037   dsi_init_dataspaces();
00038 
00039   /* init socket descriptors */
00040   dsi_init_sockets();
00041 
00042   /* init stream descriptors */
00043   dsi_init_streams();
00044 
00045   /* init event handling */
00046   dsi_init_event_signalling();
00047 
00048   return 0;
00049 }
00050 

Generated on Wed Apr 11 06:40:13 2012 for DSI - Drops Streaming Interface by  doxygen 1.5.6