7421fa1aed
Since some vendors will have firmware in mount points in /mnt/vendor/..., we extend the ueventd script language to allow specifying the firmware directories. Also, move the existing 4 directories to ueventd.rc as a primary user of this mechanism. Bug: 111337229 Test: boot sailfish; firmwares load Change-Id: I0854b0b786ad761e40d2332312c637610432fce2
35 lines
941 B
C++
35 lines
941 B
C++
/*
|
|
* Copyright (C) 2007 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 applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef _INIT_FIRMWARE_HANDLER_H
|
|
#define _INIT_FIRMWARE_HANDLER_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "uevent.h"
|
|
|
|
namespace android {
|
|
namespace init {
|
|
|
|
extern std::vector<std::string> firmware_directories;
|
|
|
|
void HandleFirmwareEvent(const Uevent& uevent);
|
|
|
|
} // namespace init
|
|
} // namespace android
|
|
|
|
#endif
|