Changeset c1c0184 in mainline for uspace/lib/c/include/async_sess.h


Ignore:
Timestamp:
2010-12-26T17:18:36Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d3cce52
Parents:
7907cf9
Message:

Make session management explicit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/async_sess.h

    r7907cf9 rc1c0184  
    3636#define LIBC_ASYNC_SESS_H_
    3737
    38 extern int async_sess_init(void);
    39 extern int async_transaction_begin(int);
    40 extern void async_transaction_end(int, int);
     38#include <adt/list.h>
     39
     40typedef struct {
     41        int sess_phone;         /**< Phone for cloning off the connections. */
     42        link_t conn_head;       /**< List of open data connections. */
     43} async_sess_t;
     44
     45extern void _async_sess_init(void);
     46extern void async_session_create(async_sess_t *, int);
     47extern void async_session_destroy(async_sess_t *);
     48extern int async_transaction_begin(async_sess_t *);
     49extern void async_transaction_end(async_sess_t *, int);
    4150
    4251#endif
Note: See TracChangeset for help on using the changeset viewer.