doubao_chat/include_lib/net/wechat/dev_net_oauth.h

30 lines
748 B
C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __DEV_NET_OAUTH_H
#define __DEV_NET_OAUTH_H
#include "typedef.h"
// int app_chat_send_voice(char *filename);
int app_chat_send_voice_buffer(char *buffer, u32 len);
char *dev_net_get_access_token(void);
// if type==NULL
// no voice
typedef void (*jl_chat_voice)(char *type, char *buf);
int app_chat_voice_set_read(void);
int app_chat_get_new_voice(jl_chat_voice cb);
int app_chat_get_one_voice(jl_chat_voice cb);
int app_chat_get_next_voice(jl_chat_voice cb);
int app_chat_get_prev_voice(jl_chat_voice cb);
int app_get_music_url(const char *str, u32 album_id, u32 meta_sn, u8 *data, u32 data_len);
//mqtt登录上,才能使用
int ota_update(const char *code, const char *platform, u32 major, u32 minjor, u32 patch);
#endif