Changeset 163 in svn for trunk/xc_shm.c


Ignore:
Timestamp:
2006-09-13T12:11:36Z (9 years ago)
Author:
Xuefer
Message:

show available shm scheme in moduleinfo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xc_shm.c

    r153 r163  
    1111#include "xc_shm.h"
    1212
    13 typedef struct {
     13struct _xc_shm_scheme_t {
    1414    const char              *name;
    1515    const xc_shm_handlers_t *handlers;
    16 } xc_shm_scheme_t;
     16};
    1717static xc_shm_scheme_t xc_shm_schemes[10];
    1818
     
    5353}
    5454/* }}} */
     55xc_shm_scheme_t *xc_shm_scheme_first() /* {{{ */
     56{
     57    return xc_shm_schemes;
     58}
     59/* }}} */
     60xc_shm_scheme_t *xc_shm_scheme_next(xc_shm_scheme_t *scheme) /* {{{ */
     61{
     62    scheme ++;
     63    return scheme->name ? scheme : NULL;
     64}
     65/* }}} */
     66const char *xc_shm_scheme_name(xc_shm_scheme_t *scheme) /* {{{ */
     67{
     68    assert(scheme);
     69    return scheme->name;
     70}
     71/* }}} */
    5572xc_shm_t *xc_shm_init(const char *type, xc_shmsize_t size, int readonly_protection, const void *arg1, const void *arg2) /* {{{ */
    5673{
Note: See TracChangeset for help on using the changeset viewer.