hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2019 Fuzhou Rockchip Electronics Co., Ltd. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
 
#ifndef _RK_UTILS_SERVICE_H_
#define _RK_UTILS_SERVICE_H_
 
namespace rockchip {
 
class Service {
public:
  Service() {}
  virtual ~Service() {}
 
  virtual void start(void) = 0;
  virtual void stop(void) = 0;
 
  bool is_running(void) const { return is_running_; }
 
private:
  bool is_running_;
};
 
} // namespace rockchip
 
#endif // _RK_UTILS_SERVICE_H_