| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #ifndef __LIB_FLASHROM_H__ | 26 #ifndef __LIB_FLASHROM_H__ |
| 27 #define __LIB_FLASHROM_H__ | 27 #define __LIB_FLASHROM_H__ |
| 28 | 28 |
| 29 #include <inttypes.h> | 29 #include <inttypes.h> |
| 30 | 30 |
| 31 enum { | 31 enum { |
| 32 FLASHROM_OK = 0, | 32 FLASHROM_OK = 0, |
| 33 FLASHROM_FAIL, | 33 FLASHROM_FAIL, |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 int flashromRead(const char* tmp_file); | 36 int flashromRead(const char* part_file, const char* full_file, |
| 37 const char* partition_name); |
| 37 | 38 |
| 38 int flashromPartialWrite(const char* tmp_file, | 39 int flashromPartialWrite(const char* part_file, const char* full_file, |
| 39 const off_t section_offset, | 40 const char* partition_name); |
| 40 const size_t section_size); | |
| 41 | 41 |
| 42 #endif /* __LIB_FLASHROM_H__ */ | 42 #endif /* __LIB_FLASHROM_H__ */ |
| OLD | NEW |