repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | demo/demo_server.c | null | null | null | null | null | null | C | 2026-05-04T19:03:42.194061 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <fcntl.h>
#include <event2/event.h>
#include <signal.h>
#include <inttypes.h>
#include <xquic/xquic_typedef.h>
#include <xquic/xquic.h>
#inc... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/xquic/xquic.h | null | null | null | null | null | null | C | 2026-05-04T19:03:42.299993 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef _XQUIC_H_INCLUDED_
#define _XQUIC_H_INCLUDED_
/**
* Public API for using libxquic
*/
#include "xqc_configure.h"
#include "xquic_typedef.h"
#if defined(XQC_SYS_WINDOWS) && !defined(XQC_ON_MINGW)
#include <winsock2.h>
#include <ws2tcpip.... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/xquic/xqc_configure.h | null | null | null | null | null | null | C | 2026-05-04T19:03:42.418481 | /* the configured options and settings for xquic */
#define xquic_VERSION_MAJOR 0
#define xquic_VERSION_MINOR 1
/* #undef XQC_ENABLE_BBR2 */
/* #undef XQC_ENABLE_RENO */
/* #undef XQC_ENABLE_COPA */
/* #undef XQC_ENABLE_UNLIMITED */
/* #undef XQC_ENABLE_MP_INTEROP */
/* #undef XQC_NO_PID_PACKET_PROCESS */
/* #undef XQ... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/xquic/xqc_errno.h | null | null | null | null | null | null | C | 2026-05-04T19:03:42.524025 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef _XQC_ERRNO_H_INCLUDED_
#define _XQC_ERRNO_H_INCLUDED_
/**
* @brief QUIC Transport Protocol error codes
*/
typedef enum {
TRA_NO_ERROR = 0x0,
TRA_INTERNAL_ERROR = 0x1,
TRA_CONNECTION_REFUSED_... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/common.c | null | null | null | null | null | null | C | 2026-05-04T19:03:43.070655 | #include "common.h"
char method_s[][16] = {
{"GET"},
{"POST"}
};
int
xqc_mini_read_file_data(char * data, size_t data_len, char *filename)
{
int ret = 0;
size_t total_len, read_len;
FILE *fp = fopen(filename, "rb");
if (fp == NULL) {
ret = -1;
goto end;
}
fseek(fp, 0 ,... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_client.c | null | null | null | null | null | null | C | 2026-05-04T19:03:43.173900 | #include "mini_client.h"
#include <netdb.h>
void
xqc_mini_cli_init_engine_ssl_config(xqc_engine_ssl_config_t *ssl_cfg, xqc_mini_cli_args_t *args)
{
ssl_cfg->ciphers = args->quic_cfg.ciphers;
ssl_cfg->groups = args->quic_cfg.groups;
}
void
xqc_mini_cli_init_callback(xqc_engine_callback_t *cb, xqc_transport_c... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_client.h | null | null | null | null | null | null | C | 2026-05-04T19:03:43.279066 | #ifndef XQC_MINI_CLIENT_H
#define XQC_MINI_CLIENT_H
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <string.h>
#include <event2/event.h>
#include <xquic/xquic.h>
#include <xquic/xqc_http3.h>
#include <xquic/xquic_typedef.h>
#ifdef XQC_SYS_WINDOWS
#pragma comme... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | demo/xqc_hq_request.h | null | null | null | null | null | null | C | 2026-05-04T19:03:43.370340 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef XQC_HQ_REQUEST_H
#define XQC_HQ_REQUEST_H
#include "xqc_hq.h"
extern const xqc_stream_callbacks_t hq_stream_callbacks;
#endif |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | demo/xqc_hq_conn.h | null | null | null | null | null | null | C | 2026-05-04T19:03:43.743031 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef XQC_HQ_CONN_H
#define XQC_HQ_CONN_H
#include "xqc_hq.h"
typedef struct xqc_hq_conn_s {
xqc_hq_conn_callbacks_t hqc_cbs;
xqc_hq_request_callbacks_t hqr_cbs;
xqc_connection_t *conn;
xqc_log_t ... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_client_cb.c | null | null | null | null | null | null | C | 2026-05-04T19:03:44.086486 | /**
* @file mini_server_cb.c contains callbacks definitions for mini_server, including:
* 1. engine callbacks
* 2. hq callbacks
* 3. h3 callbacks
*/
#include "mini_client_cb.h"
/**
* @brief engine callbacks to trigger engine main logic
*/
const char *line_break = "\n";
void
xqc_mini_cli_engine_cb(int fd, short ... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_server_cb.c | null | null | null | null | null | null | C | 2026-05-04T19:03:44.744924 | /**
* @file mini_server_cb.c contains callbacks definitions for mini_server, including:
* 1. engine callbacks
* 2. hq callbacks
* 3. h3 callbacks
*/
#include "mini_server_cb.h"
/* engine callbacks */
const char *line_break = "\n";
/**
* @brief engine callbacks to trigger engine main logic
*/
void
xqc_mini_s... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_server.c | null | null | null | null | null | null | C | 2026-05-04T19:03:44.809076 | #include "mini_server.h"
void
xqc_mini_svr_init_ssl_config(xqc_engine_ssl_config_t *ssl_cfg, xqc_mini_svr_args_t *args)
{
ssl_cfg->private_key_file = args->env_cfg.private_key_file;
ssl_cfg->cert_file = args->env_cfg.cert_file;
ssl_cfg->ciphers = args->quic_cfg.ciphers;
ssl_cfg->groups = args->quic_cf... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_server_cb.h | null | null | null | null | null | null | C | 2026-05-04T19:03:45.350911 | #ifndef XQC_MINI_SERVER_CB_H
#define XQC_MINI_SERVER_CB_H
#include <fcntl.h>
#include <xquic/xquic_typedef.h>
#ifndef XQC_SYS_WINDOWS
#include <unistd.h>
#include <sys/wait.h>
#else
#include "../tests/getopt.h"
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"event.lib")
#pragma comment(lib, "Iphlpapi.lib")
#pr... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/cjson/cJSON.c | null | null | null | null | null | null | C | 2026-05-04T19:03:45.722927 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | demo/xqc_hq_ctx.c | null | null | null | null | null | null | C | 2026-05-04T19:03:45.918011 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#include "xqc_hq_ctx.h"
#include "xqc_hq.h"
#include "xqc_hq_defs.h"
#include "xqc_hq_conn.h"
#include "xqc_hq_request.h"
#include "src/common/xqc_malloc.h"
#include <xquic/xqc_errno.h>
typedef struct xqc_hq_ctx_s {
xqc_hq_callbacks_t hq_cb... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/demo/xqc_moq_audiodemo_server.c | null | null | null | null | null | null | C | 2026-05-04T19:03:46.375195 |
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <event2/event.h>
#include <inttypes.h>
#include <xquic/xquic_typedef.h>
#include <xquic/xquic.h>
#include <xquic/xqc_http3.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <stdint.h>
#include... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/demo/xqc_moq_demo_comm.h | null | null | null | null | null | null | C | 2026-05-04T19:03:47.165143 | #ifndef _XQC_MOQ_DEMO_COMM_H_INCLUDED_
#define _XQC_MOQ_DEMO_COMM_H_INCLUDED_
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <event2/event.h>
#include <inttypes.h>
#include <xquic/xquic_typedef.h>
#include <xquic/xquic.h>
#include <xquic/xqc_http3.h>
#include... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/xquic/xqc_http3.h | null | null | null | null | null | null | C | 2026-05-04T19:03:47.242017 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef XQC_H3_H
#define XQC_H3_H
#include "xquic.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief read flag of xqc_h3_request_read_notify_pt
*/
typedef enum {
/** nothing readable */
XQC_REQ_NOTIFY_READ_NULL = 0,
... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_server.h | null | null | null | null | null | null | C | 2026-05-04T19:03:47.290807 | #ifndef XQC_MINI_SERVER_H
#define XQC_MINI_SERVER_H
#include <ctype.h>
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <xquic/xquic.h>
#include <event2/event.h>
#include <xquic/xqc_http3.h>
#include <xquic/xquic_typedef.h>
#include "common.h"
#include "../demo/xqc_hq.h"
#include... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/demo/xqc_moq_demo_client.c | null | null | null | null | null | null | C | 2026-05-04T19:03:47.396721 |
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <event2/event.h>
#include <inttypes.h>
#include <xquic/xquic_typedef.h>
#include <xquic/xquic.h>
#include <xquic/xqc_http3.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <stdint.h>
#include... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | include/xquic/xquic_typedef.h | null | null | null | null | null | null | C | 2026-05-04T19:03:47.893018 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef _XQUIC_TYPEDEF_H_INCLUDED_
#define _XQUIC_TYPEDEF_H_INCLUDED_
#include <stdint.h>
#include <stddef.h>
#include "xqc_errno.h"
#define XQC_EXTERN extern
/* defined UNIX system default */
#ifndef XQC_SYS_WINDOWS
# define XQC_SYS_UNIX
#en... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/video/xqc_moq_jitter_buffer.c | null | null | null | null | null | null | C | 2026-05-04T19:03:48.069134 | #include "src/common/xqc_malloc.h"
#include "moq/moq_media/dejitter/video/xqc_moq_jitter_buffer.h"
#include "moq/moq_media/dejitter/video/xqc_moq_video_frame_buffer.h"
xqc_moq_jitter_buffer_t *
xqc_moq_jitter_buffer_create(xqc_log_t *log)
{
xqc_moq_jitter_buffer_t *jitter_buf_inst =
xqc_calloc(1, sizeof(x... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/common.h | null | null | null | null | null | null | C | 2026-05-04T19:03:48.112257 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef TEST_COMMON_H
#define TEST_COMMON_H
#include <memory.h>
#include <stdio.h>
#include <xquic/xquic_typedef.h>
/* definition for connection */
#define DEFAULT_SERVER_ADDR "127.0.0.1"
#define DEFAULT_SERVER_PORT 8443
#define CIPHER_SUIT_LE... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/video/xqc_moq_jitter_buffer.h | null | null | null | null | null | null | C | 2026-05-04T19:03:48.477397 | #ifndef _XQC_MOQ_JITTER_BUFFER_H_INCLUDED_
#define _XQC_MOQ_JITTER_BUFFER_H_INCLUDED_
#include "moq/moq_media/xqc_moq_av_frame_ext.h"
#include "src/common/xqc_log.h"
#include "src/common/xqc_time.h"
/* currently, if no decodable frame post after 0.5s, request a keyframe */
#define XQC_MOQ_JITTER_BUFFER_MAX_WAITING_TI... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/video/xqc_moq_video_frame_buffer.h | null | null | null | null | null | null | C | 2026-05-04T19:03:48.689976 | #ifndef XQC_MOQ_VIDEO_FRAME_BUFFER_H_INCLUDED_
#define XQC_MOQ_VIDEO_FRAME_BUFFER_H_INCLUDED_
#include "include/xquic/xquic_typedef.h"
#include "moq/moq_media/xqc_moq_av_frame_ext.h"
#include "src/common/xqc_list.h"
typedef struct xqc_moq_video_frame_buffer_s {
xqc_list_head_t list;
uint64_t... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/demo/xqc_moq_demo_comm.c | null | null | null | null | null | null | C | 2026-05-04T19:03:48.933484 |
#include "xqc_moq_demo_comm.h"
// #define TEST_DROP (g_drop_rate != 0 && (rand() % 1000 < g_drop_rate || g_loss_cnt++ == 0))
#define TEST_DROP (g_drop_rate != 0 && ((g_loss_cnt++) % g_drop_rate == 0))
int g_drop_rate = 0;
int g_loss_cnt = 0;
void
xqc_app_set_log_level(char c_log_level, xqc_config_t *config)
{
... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_av_frame_ext.c | null | null | null | null | null | null | C | 2026-05-04T19:03:49.253790 | #include "moq/moq_media/xqc_moq_av_frame_ext.h"
#include "src/common/xqc_malloc.h"
#include "src/common/xqc_str.h"
void
xqc_moq_video_frame_ext_cpy(xqc_moq_video_frame_ext_t *dst_frame,
xqc_moq_video_frame_ext_t *src_frame)
{
xqc_memcpy(dst_frame, src_frame, sizeof(xqc_moq_video_frame_ext_t));
dst_frame->v... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | mini/mini_client_cb.h | null | null | null | null | null | null | C | 2026-05-04T19:03:49.254366 | #ifndef XQC_MINI_CLIENT_CB_H
#define XQC_MINI_CLIENT_CB_H
#include <fcntl.h>
#include <inttypes.h>
#include "mini_client.h"
#ifndef XQC_SYS_WINDOWS
#include <unistd.h>
#include <sys/wait.h>
#else
#include "../tests/getopt.h"
#pragma comment(lib,"ws2_32.lib")
#pragma comment(lib,"event.lib")
#pragma comment(lib, "Iphlp... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/xqc_moq_av_dejitter.c | null | null | null | null | null | null | C | 2026-05-04T19:03:49.360137 | #include "src/common/xqc_malloc.h"
#include "moq/moq_media/dejitter/xqc_moq_av_dejitter.h"
// #include "moq/moq_media/audio/neteq/xqc_moq_neteq.h"
#include "moq/moq_media/dejitter/video/xqc_moq_jitter_buffer.h"
static xqc_bool_t
xqc_moq_av_dejitter_requested_keyframe(
xqc_moq_av_dejitter_t *dejitter)
{
if (!d... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_av_frame_ext.h | null | null | null | null | null | null | C | 2026-05-04T19:03:49.484394 | #ifndef _XQC_MOQ_AV_FRAME_EXT_H_INCLUDED_
#define _XQC_MOQ_AV_FRAME_EXT_H_INCLUDED_
#include "moq/xqc_moq.h"
#include "src/common/xqc_list.h"
typedef struct {
xqc_moq_video_frame_t video_frame;
uint64_t group_id;
uint64_t object_id;
xqc_list_head... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/demo/xqc_moq_demo_server.c | null | null | null | null | null | null | C | 2026-05-04T19:03:50.316489 |
#define _GNU_SOURCE
#include <stdio.h>
#include <errno.h>
#include <memory.h>
#include <stdlib.h>
#include <event2/event.h>
#include <inttypes.h>
#include <xquic/xquic_typedef.h>
#include <xquic/xquic.h>
#include <xquic/xqc_http3.h>
#include <time.h>
#include <fcntl.h>
#include <signal.h>
#include <stdint.h>
#include... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_container_loc.h | null | null | null | null | null | null | C | 2026-05-04T19:03:50.676698 | #ifndef _XQC_MOQ_CONTAINER_LOC_H_INCLUDED_
#define _XQC_MOQ_CONTAINER_LOC_H_INCLUDED_
#include "moq/xqc_moq.h"
#include "moq/moq_media/xqc_moq_container.h"
extern const xqc_moq_media_container_ops_t xqc_moq_loc_ops;
#endif /* _XQC_MOQ_CONTAINER_LOC_H_INCLUDED_ */
|
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_container.h | null | null | null | null | null | null | C | 2026-05-04T19:03:51.290857 | #ifndef _XQC_MOQ_CONTAINER_H_INCLUDED_
#define _XQC_MOQ_CONTAINER_H_INCLUDED_
#include "moq/xqc_moq.h"
#define XQC_MOQ_CONTAINER_LOC_STR "loc"
#define XQC_MOQ_CONTAINER_CMAF_STR "cmaf"
#define XQC_MOQ_MAX_CONTAINER_OVERHEAD 200
typedef struct xqc_moq_media_container_ops_s {
xqc_int_t (*encode_video)... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_container_loc.c | null | null | null | null | null | null | C | 2026-05-04T19:03:51.292813 | #include "moq/moq_media/xqc_moq_container_loc.h"
#include "src/common/utils/vint/xqc_variable_len_int.h"
#define XQC_MOQ_LOC_ID_L 0x10
#define XQC_MOQ_LOC_SEID_0000_KEY 0xE0
#define XQC_MOQ_LOC_SEID_0000_DELTA 0xC0
#define XQC_MOQ_LOC_V_LEVEL 0x00
static xqc_int_t xqc_moq_encode_video_container_l... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | demo/common.h | null | null | null | null | null | null | C | 2026-05-04T19:03:51.448462 | /**
* @copyright Copyright (c) 2022, Alibaba Group Holding Limited
*/
#ifndef TEST_COMMON_H
#define TEST_COMMON_H
/* definition for connection */
#define DEFAULT_SERVER_ADDR "127.0.0.1"
#define DEFAULT_SERVER_PORT 8443
#define CIPHER_SUIT_LEN 256
#define TLS_GROUPS_LEN 64
#define PATH_LEN 1024... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_catalog.h | null | null | null | null | null | null | C | 2026-05-04T19:03:51.494975 | #ifndef _XQC_MOQ_CATALOG_H_INCLUDED_
#define _XQC_MOQ_CATALOG_H_INCLUDED_
#include "src/common/xqc_list.h"
#include "moq/xqc_moq.h"
#include "moq/moq_transport/xqc_moq_track.h"
#define STREAMING_FORMAT_VERSION "0.2"
typedef struct {
xqc_moq_track_t track;
} xqc_moq_catalog_track_t;
typed... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/xqc_moq_av_dejitter.h | null | null | null | null | null | null | C | 2026-05-04T19:03:51.565596 | #ifndef _XQC_MOQ_AV_DEJITTER_H_INCLUDED_
#define _XQC_MOQ_AV_DEJITTER_H_INCLUDED_
#include "moq/moq_media/xqc_moq_av_frame_ext.h"
#include "src/transport/xqc_timer.h"
#include "src/common/xqc_log.h"
typedef struct xqc_moq_neteq_s xqc_moq_neteq_t;
typedef struct xqc_moq_jitter_buffer_s xqc_moq_jitter... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_datachannel.h | null | null | null | null | null | null | C | 2026-05-04T19:03:52.054634 | #ifndef _XQC_MOQ_DATACHANNEL_H_INCLUDED_
#define _XQC_MOQ_DATACHANNEL_H_INCLUDED_
#include "moq/xqc_moq.h"
#include "moq/moq_transport/xqc_moq_track.h"
typedef struct {
xqc_moq_track_t track;
} xqc_moq_dc_track_t;
typedef struct xqc_moq_datachannel_s {
xqc_moq_stream_t *ordered_stream;... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_media_track.h | null | null | null | null | null | null | C | 2026-05-04T19:03:52.302998 | #ifndef _XQC_MOQ_MEDIA_TRACK_H_INCLUDED_
#define _XQC_MOQ_MEDIA_TRACK_H_INCLUDED_
#include "moq/moq_transport/xqc_moq_track.h"
#include "moq/moq_transport/xqc_moq_utils.h"
typedef struct xqc_moq_av_dejitter_s xqc_moq_av_dejitter_t;
typedef struct {
xqc_moq_track_t track;
xqc_moq_media_contain... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_catalog.c | null | null | null | null | null | null | C | 2026-05-04T19:03:53.052436 | #include "moq/moq_media/xqc_moq_catalog.h"
#include "moq/moq_transport/xqc_moq_message_writer.h"
#include "moq/moq_transport/xqc_moq_session.h"
#include "moq/moq_transport/xqc_moq_stream.h"
#include "moq/cjson/cJSON.h"
static void xqc_moq_catalog_on_create(xqc_moq_track_t *track);
static void xqc_moq_catalog_on_destro... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_media_track.c | null | null | null | null | null | null | C | 2026-05-04T19:03:53.983679 | #include "moq/moq_media/xqc_moq_media_track.h"
#include "moq/moq_media/xqc_moq_container_loc.h"
#include "moq/moq_transport/xqc_moq_session.h"
#include "moq/moq_transport/xqc_moq_stream.h"
#include "moq/moq_transport/xqc_moq_message.h"
#include "moq/moq_transport/xqc_moq_message_writer.h"
#include "moq/moq_transport/xq... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/dejitter/video/xqc_moq_video_frame_buffer.c | null | null | null | null | null | null | C | 2026-05-04T19:03:54.914589 | #include "moq/moq_media/dejitter/video/xqc_moq_video_frame_buffer.h"
#include "src/common/xqc_malloc.h"
xqc_moq_video_frame_buffer_t *
xqc_moq_video_frame_buffer_create()
{
xqc_moq_video_frame_buffer_t *frame_buf =
xqc_calloc(1, sizeof(xqc_moq_video_frame_buffer_t));
xqc_init_list_head(&frame_buf->list... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/moq_media/xqc_moq_datachannel.c | null | null | null | null | null | null | C | 2026-05-04T19:03:56.017444 |
#include "moq/moq_media/xqc_moq_datachannel.h"
#include "moq/moq_transport/xqc_moq_message_writer.h"
#include "moq/moq_transport/xqc_moq_session.h"
#include "moq/moq_transport/xqc_moq_stream.h"
#include "src/transport/xqc_stream.h"
static void xqc_moq_datachannel_on_create(xqc_moq_track_t *track);
static void xqc_moq... |
alibaba/xquic | https://github.com/alibaba/xquic | null | null | null | null | 1,887 | null | null | apache-2.0 | null | null | null | null | null | null | null | moq/cjson/cJSON.h | null | null | null | null | null | null | C | 2026-05-04T19:03:56.018004 | /*
Copyright (c) 2009-2017 Dave Gamble and cJSON contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, m... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | cherryusb_config_template.h | null | null | null | null | null | null | C | 2026-05-04T19:04:04.659721 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef CHERRYUSB_CONFIG_H
#define CHERRYUSB_CONFIG_H
/* ================ USB common Configuration ================ */
#ifdef __RTTHREAD__
#include <rtthread.h>
#define CONFIG_USB_PRINTF(...) rt_kprintf(__VA_ARGS__)
#else
#define CONFIG... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/audio/usbd_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:04:04.796779 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_audio.h"
struct audio_entity_param {
uint32_t wCur;
uint32_t wMin;
uint32_t wMax;
uint32_t wRes;
};
struct usbd_audio_priv {
struct audio_entity_info *table;
uint8_t num;
... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/aoa/usbh_aoa.c | null | null | null | null | null | null | C | 2026-05-04T19:04:04.815176 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_aoa.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_aoa"
#include "usb_log.h"
#define DEV_FORMAT "/dev/aoa"
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_aoa_buffer[USB_ALIGN_UP(128, CONFIG_USB_A... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/audio/usbh_audio.c | null | null | null | null | null | null | C | 2026-05-04T19:04:04.887742 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_audio.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_audio"
#include "usb_log.h"
#define DEV_FORMAT "/dev/audio%d"
/* general descriptor field offsets */
#define DESC_bLength 0 /** Lengt... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/aoa/usbh_aoa.h | null | null | null | null | null | null | C | 2026-05-04T19:04:05.537277 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_AOA_H
#define USBH_AOA_H
#include "usb_aoa.h"
struct usbh_aoa {
struct usbh_hubport *hport;
struct usb_endpoint_descriptor *bulkin; /* Bulk IN endpoint */
struct usb_endpoint_descriptor *bulkout; /* Bulk OUT end... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbd_cdc.h | null | null | null | null | null | null | C | 2026-05-04T19:04:05.566249 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_CDC_H
#define USBD_CDC_H
// legacy for old version
#include "usbd_cdc_acm.h"
#endif |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbd_cdc_acm.c | null | null | null | null | null | null | C | 2026-05-04T19:04:05.595279 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_cdc_acm.h"
const char *stop_name[] = { "1", "1.5", "2" };
const char *parity_name[] = { "N", "O", "E", "M", "S" };
static int cdc_acm_class_interface_request_handler(uint8_t busid, struct usb_setup_p... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/adb/usbd_adb.c | null | null | null | null | null | null | C | 2026-05-04T19:04:05.595815 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_adb.h"
#define ADB_OUT_EP_IDX 0
#define ADB_IN_EP_IDX 1
#define ADB_STATE_READ_MSG 0
#define ADB_STATE_READ_DATA 1
#define ADB_STATE_WRITE_MSG 2
#define ADB_STATE_WRITE_DATA 3
... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/audio/usbd_audio.h | null | null | null | null | null | null | C | 2026-05-04T19:04:05.701248 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_AUDIO_H
#define USBD_AUDIO_H
#include "usb_audio.h"
#ifdef __cplusplus
extern "C" {
#endif
struct audio_entity_info {
uint8_t bDescriptorSubtype;
uint8_t bEntityId;
uint8_t ep;
};
/* Init audio interface driver... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/audio/usbh_audio.h | null | null | null | null | null | null | C | 2026-05-04T19:04:05.766431 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_AUDIO_H
#define USBH_AUDIO_H
#include "usb_audio.h"
#ifndef CONFIG_USBHOST_AUDIO_MAX_STREAMS
#define CONFIG_USBHOST_AUDIO_MAX_STREAMS 3
#endif
struct usbh_audio_ac_msg {
struct audio_cs_if_ac_input_terminal_descriptor a... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usb_cdc.h | null | null | null | null | null | null | C | 2026-05-04T19:04:06.446456 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_CDC_H
#define USB_CDC_H
/*------------------------------------------------------------------------------
* Definitions based on usbcdc11.pdf (www.usb.org)
*--------------------------------------------------------------... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/audio/usb_audio.h | null | null | null | null | null | null | C | 2026-05-04T19:04:06.530823 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_AUDIO_H
#define USB_AUDIO_H
/** Audio Interface Subclass Codes
* Refer to Table A-2 from audio10.pdf
*/
#define AUDIO_SUBCLASS_UNDEFINED 0x00
#define AUDIO_SUBCLASS_AUDIOCONTROL 0x01
#define AUDIO_SUBCLASS_AUDIOSTREAM... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/aoa/usb_aoa.h | null | null | null | null | null | null | C | 2026-05-04T19:04:06.801080 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_AOA_H
#define USB_AOA_H
//AOA 1.0
#define AOA_ACCESSORY_VENDOR_ID 0x18D1
#define AOA_ACCESSORY_PRODUCT_ID 0x2D00
#define AOA_ACCESSORY_ADB_PRODUCT_ID 0x2D01
//AOA 2.0
#define AOA_AUDIO_PRODUCT_ID 0x2D02... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbd_cdc_acm.h | null | null | null | null | null | null | C | 2026-05-04T19:04:06.819655 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_CDC_ACM_H
#define USBD_CDC_ACM_H
#include "usb_cdc.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Init cdc acm interface driver */
struct usbd_interface *usbd_cdc_acm_init_intf(uint8_t busid, struct usbd_interface *intf);
/*... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbh_cdc_ncm.h | null | null | null | null | null | null | C | 2026-05-04T19:04:07.115584 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_CDC_NCM_H
#define USBH_CDC_NCM_H
#include "usb_cdc.h"
struct usbh_cdc_ncm {
struct usbh_hubport *hport;
struct usb_endpoint_descriptor *bulkin; /* Bulk IN endpoint */
struct usb_endpoint_descriptor *bulkout; /* ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbh_cdc_ecm.h | null | null | null | null | null | null | C | 2026-05-04T19:04:07.138874 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_CDC_ECM_H
#define USBH_CDC_ECM_H
#include "usb_cdc.h"
struct usbh_cdc_ecm {
struct usbh_hubport *hport;
struct usb_endpoint_descriptor *bulkin; /* Bulk IN endpoint */
struct usb_endpoint_descriptor *bulkout; /* ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbh_cdc_ecm.c | null | null | null | null | null | null | C | 2026-05-04T19:04:07.368461 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_cdc_ecm.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_cdc_ecm"
#include "usb_log.h"
#define DEV_FORMAT "/dev/cdc_ether"
/* general descriptor field offsets */
#define DESC_bLength 0 /**... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/gamepad/usb_gamepad.h | null | null | null | null | null | null | C | 2026-05-04T19:04:07.749130 | /*
* Copyright (c) 2026, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_GAMEPAD_H
#define USB_GAMEPAD_H
#include "usb_hid.h"
/*
* GAMEPAD BUTTON LAYOUT
*
* ____________________________ __
* / [__L2__] [__R2__] \ |
* / [__ L1 ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbh_cdc_ncm.c | null | null | null | null | null | null | C | 2026-05-04T19:04:07.797019 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_cdc_ncm.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_cdc_ncm"
#include "usb_log.h"
#define DEV_FORMAT "/dev/cdc_ncm"
/* general descriptor field offsets */
#define DESC_bLength 0 /** L... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/dfu/usbd_dfu.c | null | null | null | null | null | null | C | 2026-05-04T19:04:08.013090 | /*
* Copyright (c) 2022 ~ 2026, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_dfu.h"
struct usbd_dfu_priv {
uint8_t dfu_state;
} g_usbd_dfu;
const char *usbd_dfu_state_string[] = {
"APP_IDLE",
"APP_DETACH",
"DFU_IDLE",
"DFU_DNLOAD_SYNC",
"DFU_DNL... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/dfu/usb_dfu.h | null | null | null | null | null | null | C | 2026-05-04T19:04:08.343226 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_DFU_H
#define USB_DFU_H
/**\addtogroup USB_MODULE_DFU USB DFU class
* \brief This module contains USB Device Firmware Upgrade class definitions.
* \details This module based on
* + [USB Device Firmware Upgrade Specification... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/dfu/usbd_dfu.h | null | null | null | null | null | null | C | 2026-05-04T19:04:08.361709 | /*
* Copyright (c) 2022 ~ 2026, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_DFU_H
#define USBD_DFU_H
#include "usb_dfu.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Init dfu interface driver */
struct usbd_interface *usbd_dfu_init_intf(struct usbd_interface *intf);
uint8_t usbd_dfu_get_state(... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hid/usbd_hid.c | null | null | null | null | null | null | C | 2026-05-04T19:04:08.794480 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_hid.h"
static int hid_class_interface_request_handler(uint8_t busid, struct usb_setup_packet *setup, uint8_t **data, uint32_t *len)
{
USB_LOG_DBG("HID Class request: "
"bRequest 0x... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hid/usbd_hid.h | null | null | null | null | null | null | C | 2026-05-04T19:04:09.088561 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_HID_H
#define USBD_HID_H
#include "usb_hid.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Init hid interface driver */
struct usbd_interface *usbd_hid_init_intf(uint8_t busid, struct usbd_interface *intf, const uint8_t *desc,... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hid/usbh_hid.h | null | null | null | null | null | null | C | 2026-05-04T19:04:09.117125 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_HID_H
#define USBH_HID_H
#include "usb_hid.h"
#ifndef CONFIG_USB_HID_MAX_REPORT_ITEMS
#define CONFIG_USB_HID_MAX_REPORT_ITEMS 16
#endif
struct usbh_hid_report_item_attribute {
uint16_t usage_page;
uint16_t usa... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hid/usb_hid.h | null | null | null | null | null | null | C | 2026-05-04T19:04:10.022928 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_HID_H
#define USB_HID_H
/* Subclass codes (HID 4.2) */
#define HID_SUBCLASS_NONE 0 /* No subclass */
#define HID_SUBCLASS_BOOTIF 1 /* Boot Interface Subclass */
/* HID Protocol Codes (HID 4.3) */
#define HID_PROTOCOL_NONE ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hub/usbh_hub.h | null | null | null | null | null | null | C | 2026-05-04T19:04:10.258330 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_HUB_H
#define USBH_HUB_H
#include "usb_hub.h"
struct usbh_hub;
#ifdef __cplusplus
extern "C" {
#endif
int usbh_hub_set_feature(struct usbh_hub *hub, uint8_t port, uint8_t feature);
int usbh_hub_clear_feature(struct usbh_hu... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hid/usbh_hid.c | null | null | null | null | null | null | C | 2026-05-04T19:04:10.449043 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_hid.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_hid"
#include "usb_log.h"
#define DEV_FORMAT "/dev/input%d"
/* general descriptor field offsets */
#define DESC_bLength 0 /** Length offse... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hub/usbh_hub.c | null | null | null | null | null | null | C | 2026-05-04T19:04:10.450368 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_hub.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_hub"
#include "usb_log.h"
#define DEV_FORMAT "/dev/hub%d"
#define HUB_DEBOUNCE_TIMEOUT 1500
#define HUB_DEBOUNCE_STEP 25
#define HUB_DEBOUN... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/midi/usb_midi.h | null | null | null | null | null | null | C | 2026-05-04T19:04:10.774778 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_MIDI_H
#define USB_MIDI_H
#include "usb_audio.h"
/* bDescriptorSubType */
#define MIDI_VC_HEADER_DESCRIPTOR_SUBTYPE 0x01U
#define MIDI_MS_HEADER_DESCRIPTOR_SUBTYPE 0x01U
#define MIDI_MS_GENERAL_DESCRIPTOR_SUBTYPE 0... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/gamepad/usbd_gamepad.h | null | null | null | null | null | null | C | 2026-05-04T19:04:11.268466 | /*
* Copyright (c) 2026, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_GAMEPAD_H
#define USBD_GAMEPAD_H
#include "usb_gamepad.h"
#define USBD_GAMEPAD_MODE_XINPUT 0
#define USBD_GAMEPAD_MODE_SWITCH 1
#define USBD_GAMEPAD_MODE_XBOXONE 2
#define USBD_GAMEPAD_MODE_PS4 3
struct usbd_interface... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/adb/usbd_adb.h | null | null | null | null | null | null | C | 2026-05-04T19:04:11.283931 | /*
* Copyright (c) 2024, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_ADB_H
#define USBD_ADB_H
#include <stdint.h>
#define ADB_SHELL_LOALID 0x01
#define ADB_FILE_LOALID 0x02
// clang-format off
#define ADB_DESCRIPTOR_INIT(bFirstInterface, in_ep, out_ep, wMaxPacketSize) ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usbd_msc.c | null | null | null | null | null | null | C | 2026-05-04T19:04:11.345577 | /*
* Copyright (c) 2022, sakumisu
* Copyright (c) 2024, zhihong chen
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_msc.h"
#include "usb_scsi.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbd_msc"
#include "usb_log.h"
#define MSD_OUT_EP_IDX 0
#define MSD_IN_EP_IDX 1
/* Describe ... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/hub/usb_hub.h | null | null | null | null | null | null | C | 2026-05-04T19:04:11.664745 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_HUB_H
#define USB_HUB_H
/* HUB Class Descriptor Types */
#define HUB_DESCRIPTOR_TYPE_HUB 0x29
#define HUB_DESCRIPTOR_TYPE_HUB3 0x2A
#define HUB_MAX_DEPTH 5
#define HUB_SUBCLASS 0x00
#define HUB_PROTOCOL_STT 0x01
#define... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbd_cdc_ecm.c | null | null | null | null | null | null | C | 2026-05-04T19:04:12.489285 | /*
* Copyright (c) 2023, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_cdc_ecm.h"
#define CDC_ECM_OUT_EP_IDX 0
#define CDC_ECM_IN_EP_IDX 1
#define CDC_ECM_INT_EP_IDX 2
/* Ethernet Maximum Segment size, typically 1514 bytes */
#define CONFIG_CDC_ECM_ETH_MAX_SEGSZE 1536U... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/mtp/usbd_mtp.h | null | null | null | null | null | null | C | 2026-05-04T19:04:12.762472 | /*
* Copyright (c) 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_MTP_H
#define USBD_MTP_H
#include "usb_mtp.h"
#include <sys/stat.h>
#include <fcntl.h>
/* gcc toolchain does not implement dirent.h, so we define our own MTP_DIR and mtp_dirent */
typedef void MTP_DIR;
struct mtp_statfs {
... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/cdc/usbd_cdc_ecm.h | null | null | null | null | null | null | C | 2026-05-04T19:04:12.776721 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_CDC_ECM_H
#define USBD_CDC_ECM_H
#include "usb_cdc.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Init cdc ecm interface driver */
struct usbd_interface *usbd_cdc_ecm_init_intf(struct usbd_interface *intf, const uint8_t int_e... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usbd_msc.h | null | null | null | null | null | null | C | 2026-05-04T19:04:12.802653 | /*
* Copyright (c) 2022, sakumisu
* Copyright (c) 2024, zhihong chen
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_MSC_H
#define USBD_MSC_H
#include "usb_msc.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Init msc interface driver */
struct usbd_interface *usbd_msc_init_intf(uint8_t busid, struct usbd_i... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/mtp/usb_mtp.h | null | null | null | null | null | null | C | 2026-05-04T19:04:13.242662 | /*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/serial/usbh_cdc_acm.h | null | null | null | null | null | null | C | 2026-05-04T19:04:13.472144 | /*
* Copyright (c) 2022 ~ 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_CDC_ACM_H
#define USBH_CDC_ACM_H
#include "usb_cdc.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* USBH_CDC_ACM_H */
|
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/serial/usbh_cdc_acm.c | null | null | null | null | null | null | C | 2026-05-04T19:04:14.060233 | /*
* Copyright (c) 2022 ~ 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_serial.h"
#include "usbh_cdc_acm.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_cdc_acm"
#include "usb_log.h"
struct usbh_cdc_acm {
struct usb_endpoint_descriptor *intin;
struct usbh_... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usb_scsi.h | null | null | null | null | null | null | C | 2026-05-04T19:04:14.638858 | /*
* Apache NuttX
* Copyright 2020 The Apache Software Foundation
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef __INCLUDE_NUTTX_SCSI_H
#define __INCLUDE_NUTTX_SCSI_H
/****************************************************************************
* Included Files
**********************************************... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/serial/usbh_ch34x.h | null | null | null | null | null | null | C | 2026-05-04T19:04:14.910044 | /*
* Copyright (c) 2024 ~ 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_CH34X_H
#define USBH_CH34X_H
#include "usb_cdc.h"
/* Requests */
#define CH34X_READ_VERSION 0x5F
#define CH34X_WRITE_REG 0x9A
#define CH34X_READ_REG 0x95
#define CH34X_SERIAL_INIT 0xA1
#define CH34X_MODEM_CTRL... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/mtp/usbd_mtp_support.h | null | null | null | null | null | null | C | 2026-05-04T19:04:15.168124 | /*
* Copyright (c) 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBD_MTP_SUPPORT_H
#define USBD_MTP_SUPPORT_H
#define MTP_VERSION 100
typedef struct _profile_property {
uint16_t prop_code;
uint16_t data_type;
uint8_t getset;
uint64_t default_value;
uint32_t group_code;
... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/serial/usbh_ch34x.c | null | null | null | null | null | null | C | 2026-05-04T19:04:15.387686 | /*
* Copyright (c) 2024 ~ 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_serial.h"
#include "usbh_ch34x.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_ch34x"
#include "usb_log.h"
struct usbh_ch34x {
struct usb_endpoint_descriptor *intin;
struct usbh_urb in... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usbh_msc.h | null | null | null | null | null | null | C | 2026-05-04T19:04:17.389919 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USBH_MSC_H
#define USBH_MSC_H
#include "usb_msc.h"
#include "usb_scsi.h"
struct usbh_msc {
struct usbh_hubport *hport;
struct usb_endpoint_descriptor *bulkin; /* Bulk IN endpoint */
struct usb_endpoint_descriptor *bu... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usb_msc.h | null | null | null | null | null | null | C | 2026-05-04T19:04:17.429485 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef USB_MSC_H
#define USB_MSC_H
/* MSC Subclass Codes */
#define MSC_SUBCLASS_RBC 0x01 /* Reduced block commands (e.g., flash devices) */
#define MSC_SUBCLASS_SFF8020I_MMC2 0x02 /* SFF-8020i/MMC-2 (ATAPI) (e.g., C/DVD) */
#d... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/msc/usbh_msc.c | null | null | null | null | null | null | C | 2026-05-04T19:04:17.647219 | /*
* Copyright (c) 2022, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_msc.h"
#include "usb_scsi.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_msc"
#include "usb_log.h"
#define DEV_FORMAT "/dev/sd%c"
#ifndef CONFIG_USBHOST_MSC_READY_CHECK_TIMES
#define CONFIG_USBHOST... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/gamepad/usbd_gamepad.c | null | null | null | null | null | null | C | 2026-05-04T19:04:18.018840 | /*
* Copyright (c) 2026, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbd_core.h"
#include "usbd_hid.h"
#include "usbd_gamepad.h"
USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t gamepad_report_buffer[64];
static int xinput_vendor_class_request_handler(uint8_t busid, struct usb_setup_packet *setup... |
cherry-embedded/CherryUSB | https://github.com/cherry-embedded/CherryUSB | null | null | null | null | 1,883 | null | null | apache-2.0 | null | null | null | null | null | null | null | class/serial/usbh_cp210x.c | null | null | null | null | null | null | C | 2026-05-04T19:04:19.472932 | /*
* Copyright (c) 2024 ~ 2025, sakumisu
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "usbh_core.h"
#include "usbh_serial.h"
#include "usbh_cp210x.h"
#undef USB_DBG_TAG
#define USB_DBG_TAG "usbh_cp210x"
#include "usb_log.h"
struct usbh_cp210x {
uint8_t partnum;
uint32_t fw_version;
uint32_t min... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/src/boot_serial_encryption.c | null | null | null | null | null | null | C | 2026-05-04T19:04:38.109681 | /*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2020-2023 Nordic Semiconductor ASA
* Copyright (c) 2020 Arm Limited
*/
#include <assert.h>
#include "bootutil/image.h"
#include <../src/bootutil_priv.h>
#include "bootutil/bootutil_log.h"
#include "bootutil/bootutil_public.h"
#include "bootutil/fault_inje... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/include/boot_serial/boot_serial.h | null | null | null | null | null | null | C | 2026-05-04T19:04:38.131701 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/src/zcbor_bulk.h | null | null | null | null | null | null | C | 2026-05-04T19:04:38.133021 | /*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef H_ZCBOR_BULK_PRIV_
#define H_ZCBOR_BULK_PRIV_
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __ZEPHYR__
#include <zcbor_common.h>
#include <zcbor_decode.h>
#else
#include "zcbor_common.h"
#include "zcbor_decode.h"
#... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/src/boot_serial_priv.h | null | null | null | null | null | null | C | 2026-05-04T19:04:38.809831 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/test/src/boot_test.c | null | null | null | null | null | null | C | 2026-05-04T19:04:38.867217 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
mcu-tools/mcuboot | https://github.com/mcu-tools/mcuboot | null | null | null | null | 1,875 | null | null | apache-2.0 | null | null | null | null | null | null | null | boot/boot_serial/test/src/testcases/boot_serial_img_msg.c | null | null | null | null | null | null | C | 2026-05-04T19:04:38.897014 | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.