Advertisement
Guest User

Untitled

a guest
Feb 18th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. //
  2. // Created by Anton Priyma on 15.02.2020.
  3. //
  4.  
  5. #include <sys/resmgr.h>
  6. #include <sys/iofunc.h>
  7. #include <sys/dispatch.h>
  8. #include <sys/iofunc.h>
  9. #include "zip-lib/qnx-zip.h"
  10.  
  11. class QnxFolderManager {
  12. public:
  13. int Init_res_manager(char *path);
  14.  
  15.  
  16. private:
  17. char *path;
  18. static char *cur_path;
  19. static QnxZipCTL zip_manger;
  20.  
  21. resmgr_connect_funcs_t connect_funcs;
  22. resmgr_io_funcs_t io_funcs;
  23. iofunc_attr_t attr;
  24.  
  25. static int read(resmgr_context_t *ctp, io_read_t *msg,
  26. iofunc_ocb_t *ocb);
  27.  
  28. static int write(resmgr_context_t *ctp, io_write_t *msg,
  29. iofunc_ocb_t *ocb);
  30.  
  31. static int open(resmgr_context_t *ctp, io_open_t *msg, iofunc_attr_t *attr, void *extra);
  32.  
  33. static int my_read_dir(resmgr_context_t *pContext,
  34. io_read_t *msg,
  35. iofunc_ocb_t *pOcb);
  36.  
  37. static int my_read_file(resmgr_context_t *ctp, io_read_t *msg,
  38. iofunc_ocb_t *ocb);
  39.  
  40.  
  41. int create_folder_manager();
  42.  
  43. static int mkdir(resmgr_context_t *, io_mknod_t *,iofunc_attr_t *attr, void *reserved);
  44.  
  45.  
  46.  
  47. static int unlink(resmgr_context_t *ctp, io_unlink_t *msg, iofunc_attr_t *attr, void *extra);
  48.  
  49. static void term(int);
  50. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement