mirror of
https://github.com/openharmony/hiviewdfx_hiview_lite.git
synced 2026-07-01 04:23:25 -04:00
+4
-1
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2020-2025 Huawei Device Co., Ltd.
|
||||
* 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
|
||||
@@ -312,6 +312,9 @@ void RegisterFileWatcher(HiviewFile *fp, FileProc func, const char *path)
|
||||
|
||||
void UnRegisterFileWatcher(HiviewFile *fp, FileProc func)
|
||||
{
|
||||
if (fp == NULL || func == NULL) {
|
||||
return;
|
||||
}
|
||||
(void)func;
|
||||
fp->pFunc = NULL;
|
||||
if (IsValidPath(fp->outPath) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user