diff options
Diffstat (limited to 'xlators/features/changelog/src/changelog-rt.h')
| -rw-r--r-- | xlators/features/changelog/src/changelog-rt.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/xlators/features/changelog/src/changelog-rt.h b/xlators/features/changelog/src/changelog-rt.h new file mode 100644 index 000000000..634b7473b --- /dev/null +++ b/xlators/features/changelog/src/changelog-rt.h @@ -0,0 +1,40 @@ +/* + Copyright (c) 2013 Red Hat, Inc. <http://www.redhat.com> + This file is part of GlusterFS. + + This file is licensed to you under your choice of the GNU Lesser + General Public License, version 3 or any later version (LGPLv3 or + later), or the GNU General Public License, version 2 (GPLv2), in all + cases as published by the Free Software Foundation. +*/ + +#ifndef _CHANGELOG_RT_H +#define _CHANGELOG_RT_H + +#include "locking.h" +#include "timer.h" +#include "pthread.h" + +#include "changelog-helpers.h" + +/* unused as of now - may be you would need it later */ +typedef struct changelog_rt { + gf_lock_t lock; +} changelog_rt_t; + +int +changelog_rt_init (xlator_t *this, + changelog_dispatcher_t *cd, gf_boolean_t lockless_update); +int +changelog_rt_fini (xlator_t *this, changelog_dispatcher_t *cd); +int +changelog_rt_enqueue (xlator_t *this, + changelog_priv_t *priv, void *cbatch, + changelog_local_t *local, changelog_log_data_t *cld_0); +int +changelog_rt_enqueue_lockless (xlator_t *this, + changelog_priv_t *priv, void *cbatch, + changelog_local_t *local, + changelog_log_data_t *cld_0); + +#endif /* _CHANGELOG_RT_H */ |
