From 7380ec37df42164fe8945d549f01824d81add4e8 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Sun, 31 May 2009 19:12:43 -0700 Subject: [PATCH] get rid of utils.h in libutils --- simulator/app/LoadableImage.cpp | 2 +- simulator/app/PhoneCollection.cpp | 2 +- simulator/app/PhoneData.cpp | 2 +- simulator/app/PhoneData.h | 2 +- simulator/app/UserEventMessage.h | 2 +- simulator/app/utils.h | 33 +++++++++++++++++++++++++++++++ 6 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 simulator/app/utils.h diff --git a/simulator/app/LoadableImage.cpp b/simulator/app/LoadableImage.cpp index e5bd0f3e2..513165bb4 100644 --- a/simulator/app/LoadableImage.cpp +++ b/simulator/app/LoadableImage.cpp @@ -17,7 +17,7 @@ #include "AssetStream.h" #include "MyApp.h" -#include +#include "utils.h" #include diff --git a/simulator/app/PhoneCollection.cpp b/simulator/app/PhoneCollection.cpp index 5cddfa8b3..e1882cc59 100644 --- a/simulator/app/PhoneCollection.cpp +++ b/simulator/app/PhoneCollection.cpp @@ -18,7 +18,7 @@ #include "PhoneData.h" #include "MyApp.h" -#include +#include "utils.h" #include #include diff --git a/simulator/app/PhoneData.cpp b/simulator/app/PhoneData.cpp index 48614fd7a..f15df2b54 100644 --- a/simulator/app/PhoneData.cpp +++ b/simulator/app/PhoneData.cpp @@ -19,7 +19,7 @@ #include "PhoneCollection.h" #include "MyApp.h" -#include +#include "utils.h" #include #include diff --git a/simulator/app/PhoneData.h b/simulator/app/PhoneData.h index c7f473274..2d7003a51 100644 --- a/simulator/app/PhoneData.h +++ b/simulator/app/PhoneData.h @@ -22,7 +22,7 @@ #include "PhoneButton.h" #include "LoadableImage.h" #include -#include +#include "utils.h" /* diff --git a/simulator/app/UserEventMessage.h b/simulator/app/UserEventMessage.h index 4a66cc2cb..9b94ea726 100644 --- a/simulator/app/UserEventMessage.h +++ b/simulator/app/UserEventMessage.h @@ -6,7 +6,7 @@ #ifndef _SIM_USER_EVENT_MESSAGE_H #define _SIM_USER_EVENT_MESSAGE_H -#include +#include "utils.h" #include "LogMessage.h" /* diff --git a/simulator/app/utils.h b/simulator/app/utils.h new file mode 100644 index 000000000..bd057d1df --- /dev/null +++ b/simulator/app/utils.h @@ -0,0 +1,33 @@ +/* + * Copyright (C) 2005 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. + */ + +// +// Handy utility functions and portability code. This file includes all +// of the generally-useful headers in the "utils" directory. +// +#ifndef _SIM_UTILS_H +#define _SIM_UTILS_H + +#include +#include +#include +#include +#include +#include +#include +#include + +#endif // _SIM_UTILS_H