15593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand/* 25593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * Copyright (C) 2012 The Android Open Source Project 35593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * 45593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * Licensed under the Apache License, Version 2.0 (the "License"); 55593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * you may not use this file except in compliance with the License. 65593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * You may obtain a copy of the License at 75593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * 85593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * http://www.apache.org/licenses/LICENSE-2.0 95593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * 105593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * Unless required by applicable law or agreed to in writing, software 115593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * distributed under the License is distributed on an "AS IS" BASIS, 125593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * See the License for the specific language governing permissions and 145593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand * limitations under the License. 155593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand */ 165593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand 175593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand#ifndef _VOLDUTIL_H 185593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand#define _VOLDUTIL_H 195593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand 209caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall#include <sys/cdefs.h> 219caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall 225593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand#define ARRAY_SIZE(a) (sizeof(a) / sizeof(*(a))) 235593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand 249caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall__BEGIN_DECLS 259caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall unsigned int get_blkdev_size(int fd); 269caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall__END_DECLS 279caab76c6b5aefdeeb1715a3695491ca793b8c18Ken Sumrall 285593c856f49684f149116a6f2f28ddf9338b8557Rom Lemarchand#endif 29