#include <stdint.h>
#include <string.h>
#include "sharekit_api.h"

// 仅测试 StopShareService 接口
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
    (void)data;
    (void)size;
    static int service_started = 0;
    // 测试前提:初始化+开启
    if (!service_started) {
        InitContext ctx = {0};
        InitShareKit(&ctx);
        StartShareService(NULL);
        service_started = 1;
    }

    // 调用 StopShareService
    StopShareService();

    return 0;
}