param.h 919 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright (C) 2021 Alibaba Group Holding Limited
  3. * Author: LuChongzhi <chongzhi.lcz@alibaba-inc.com>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef __PARAM_H__
  10. #define __PARAM_H__
  11. #include <curses.h>
  12. #define MENU_ITEM_MAX_LEN 16
  13. extern char param[10][10][MENU_ITEM_MAX_LEN+1];
  14. int get_param(char *name);
  15. #define MENU_CAMERA 1
  16. typedef enum {
  17. MENU_CAMERA_LIST = 0,
  18. MENU_CAMERA_OPEN,
  19. MENU_CAMERA_SET_MODE,
  20. MENU_CAMERA_SET_PROPERTY,
  21. MENU_CAMERA_CLOSE,
  22. } menu_camera_item_e;
  23. #define MENU_CHANNEL 2
  24. typedef enum {
  25. MENU_CHANNEL_LIST = 0,
  26. MENU_CHANNEL_OPEN,
  27. MENU_CHANNEL_CLOSE,
  28. } menu_channel_item_e;
  29. #define MENU_EVENT_RUN 3
  30. typedef enum {
  31. MENU_EVENT_SUBSCRIBE_ACTION = 0,
  32. MENU_EVENT_START_STOP,
  33. } menu_event_run_item_e;
  34. #endif /* __PARAM_H__ */