fic.c 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. /*****************************************************************************
  2. Copyright(c) 2009 FCI Inc. All Rights Reserved
  3. File name : FIC.c
  4. Description : FIC Wrapper
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. History :
  17. ----------------------------------------------------------------------
  18. *******************************************************************************/
  19. #include "fic.h"
  20. int fic_decoder_put(struct fic *pfic, u16 length)
  21. {
  22. return fic_decoder(pfic, length);
  23. }
  24. struct esbinfo_t *fic_decoder_get_ensemble_info(u32 freq)
  25. {
  26. return get_emsemble_info();
  27. }
  28. struct subch_info_t *fic_decoder_get_subchannel_info(u8 subchannel_id)
  29. {
  30. return get_subchannel_info(subchannel_id);
  31. }
  32. struct service_info_t *fic_decoder_get_service_info(u32 sid)
  33. {
  34. return get_service_info(sid);
  35. }
  36. struct scInfo_t *fic_decoder_get_sc_info(u16 scid)
  37. {
  38. return get_sc_info(scid);
  39. }
  40. struct service_info_t *fic_decoder_get_service_info_list(u8 service_index)
  41. {
  42. return get_service_info_list(service_index);
  43. }
  44. void fic_decoder_subchannel_org_prn(int subchannel_id)
  45. {
  46. subchannel_org_prn(subchannel_id);
  47. }
  48. int fic_decoder_subchannel_org_to_didp(
  49. struct subch_info_t *sub_ch_info, struct didp_info_t *pdidp)
  50. {
  51. return subchannel_org_to_didp(sub_ch_info, pdidp);
  52. }
  53. int fic_decoder_found_all_labels(void)
  54. {
  55. if (found_all_labels())
  56. return 1;
  57. return 0;
  58. }
  59. int fic_decoder_subchannel_info_clean(void)
  60. {
  61. subchannel_org_clean();
  62. return 0;
  63. }