agileRTOS (zrtos)  Version 0.8.0 (ghostbuster)
vfs_inode.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2024 ykat UG (haftungsbeschraenkt) - All Rights Reserved
3  *
4  * Permission for non-commercial use is hereby granted,
5  * free of charge, without warranty of any kind.
6  */
7 #ifndef ZRTOS_VFS_INODE_H
8 #define ZRTOS_VFS_INODE_H
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 
14 #include <zrtos/vfs_plugin.h>
15 
16 
17 typedef struct _zrtos_vfs_inode_t{
19  void *ctx;
21 
23  zrtos_vfs_inode_t *thiz
25  ,void *ctx
26 ){
27  thiz->plugin = plugin;
28  thiz->ctx = ctx;
29  return true;
30 }
31 
33  zrtos_vfs_inode_t *thiz
34 ){
35  thiz->plugin = 0;
36  thiz->ctx = 0;
37 }
38 
40  zrtos_vfs_inode_t *thiz
41 ){
42  return thiz->plugin;
43 }
44 
46  zrtos_vfs_inode_t *thiz
47 ){
48  return thiz->ctx;
49 }
50 
51 #ifdef __cplusplus
52 }
53 #endif
54 #endif
void zrtos_vfs_inode__deinit(zrtos_vfs_inode_t *thiz)
Definition: vfs_inode.h:32
zrtos_vfs_plugin_t * zrtos_vfs_inode__get_plugin(zrtos_vfs_inode_t *thiz)
Definition: vfs_inode.h:39
void * zrtos_vfs_inode__get_ctx(zrtos_vfs_inode_t *thiz)
Definition: vfs_inode.h:45
zrtos_vfs_plugin_t * plugin
Definition: vfs_inode.h:18
struct _zrtos_vfs_inode_t zrtos_vfs_inode_t
bool zrtos_vfs_inode__init(zrtos_vfs_inode_t *thiz, zrtos_vfs_plugin_t *plugin, void *ctx)
Definition: vfs_inode.h:22