1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 5 #ifndef __UVOICE_COMB_H__ 6 #define __UVOICE_COMB_H__ 7 8 9 #define COMB_SOURCE_LIST_MAX 100 10 #define COMB_SOURCE_PATH_LEN 64 11 12 typedef struct { 13 const char sources[COMB_SOURCE_LIST_MAX][COMB_SOURCE_PATH_LEN]; 14 int count; 15 void (*callback)(void *args, int event); 16 void *userdata; 17 } comb_source_info_t; 18 19 int comb_add_amount(const char *amount, int index); 20 int comb_add_number(const char *number, int index); 21 int comb_add_file_source_list(comb_source_info_t *info); 22 int comb_add_http_source(const char *source, int index); 23 int comb_clr_http_source(void); 24 25 int comb_alipay_number(double amount); 26 int comb_receipt_play(const char *req); 27 int comb_content_play(const char *req); 28 int comb_play_stop(void); 29 int comb_init(void); 30 int comb_deinit(void); 31 32 33 #endif /* __UVOICE_COMB_H__ */ 34