1*13e8728fSAndroid Build Coastguard Worker /* 2*13e8728fSAndroid Build Coastguard Worker * Copyright (C) 2016 The Android Open Source Project 3*13e8728fSAndroid Build Coastguard Worker * 4*13e8728fSAndroid Build Coastguard Worker * Licensed under the Apache License, Version 2.0 (the "License"); 5*13e8728fSAndroid Build Coastguard Worker * you may not use this file except in compliance with the License. 6*13e8728fSAndroid Build Coastguard Worker * You may obtain a copy of the License at 7*13e8728fSAndroid Build Coastguard Worker * 8*13e8728fSAndroid Build Coastguard Worker * http://www.apache.org/licenses/LICENSE-2.0 9*13e8728fSAndroid Build Coastguard Worker * 10*13e8728fSAndroid Build Coastguard Worker * Unless required by applicable law or agreed to in writing, software 11*13e8728fSAndroid Build Coastguard Worker * distributed under the License is distributed on an "AS IS" BASIS, 12*13e8728fSAndroid Build Coastguard Worker * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13*13e8728fSAndroid Build Coastguard Worker * See the License for the specific language governing permissions and 14*13e8728fSAndroid Build Coastguard Worker * limitations under the License. 15*13e8728fSAndroid Build Coastguard Worker */ 16*13e8728fSAndroid Build Coastguard Worker 17*13e8728fSAndroid Build Coastguard Worker #ifndef UTIL_H 18*13e8728fSAndroid Build Coastguard Worker #define UTIL_H 19*13e8728fSAndroid Build Coastguard Worker 20*13e8728fSAndroid Build Coastguard Worker #include <stdio.h> 21*13e8728fSAndroid Build Coastguard Worker 22*13e8728fSAndroid Build Coastguard Worker char *load_file(const char *filename, size_t *len_ptr); 23*13e8728fSAndroid Build Coastguard Worker int write_buf_to_file(const char *filename, const void *buf, size_t buf_size); 24*13e8728fSAndroid Build Coastguard Worker int write_fdt_to_file(const char *filename, const void *fdt); 25*13e8728fSAndroid Build Coastguard Worker 26*13e8728fSAndroid Build Coastguard Worker #endif 27