srs/trunk/src/app/srs_app_refer.hpp
Winlin 6e1134fe9b
Use clang format. v7.0.52 (#4433)
---------

Co-authored-by: ChenGH <chengh_math@126.com>
2025-08-11 23:19:19 -04:00

33 lines
575 B
C++

//
// Copyright (c) 2013-2025 The SRS Authors
//
// SPDX-License-Identifier: MIT
//
#ifndef SRS_APP_REFER_HPP
#define SRS_APP_REFER_HPP
#include <srs_core.hpp>
#include <string>
class SrsConfDirective;
class SrsRefer
{
public:
SrsRefer();
virtual ~SrsRefer();
public:
// Check the refer.
// @param page_url the client page url.
// @param refer the refer in config.
virtual srs_error_t check(std::string page_url, SrsConfDirective *refer);
private:
virtual srs_error_t check_single_refer(std::string page_url, std::string refer);
};
#endif