From 4bd2adc4f99a7d8face6b4c7273fbeb7da6eeb14 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Wed, 28 Mar 2012 13:38:41 +0200 Subject: [PATCH] Added missing files. --- .gitignore | 10 +++ base/{i2-base.vcxproj => base.vcxproj} | 0 base/fifo.cpp | 2 +- icinga2.sln | 39 ++++++++ .../{i2-jsonrpc.vcxproj => jsonrpc.vcxproj} | 8 +- miniapp/miniapp.vcxproj | 89 +++++++++++++++++++ 6 files changed, 143 insertions(+), 5 deletions(-) create mode 100644 .gitignore rename base/{i2-base.vcxproj => base.vcxproj} (100%) create mode 100644 icinga2.sln rename jsonrpc/{i2-jsonrpc.vcxproj => jsonrpc.vcxproj} (93%) create mode 100644 miniapp/miniapp.vcxproj diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..6cd51c5bf --- /dev/null +++ b/.gitignore @@ -0,0 +1,10 @@ +*.sdf +*.opensdf +*.suo +*.lib +*.exe +*.pdb +Debug +Release +*.vcxproj.user +ipch \ No newline at end of file diff --git a/base/i2-base.vcxproj b/base/base.vcxproj similarity index 100% rename from base/i2-base.vcxproj rename to base/base.vcxproj diff --git a/base/fifo.cpp b/base/fifo.cpp index edcaa02f9..dcd05dabc 100644 --- a/base/fifo.cpp +++ b/base/fifo.cpp @@ -21,7 +21,7 @@ char *FIFO::ResizeBuffer(char *buffer, size_t oldSize, size_t newSize) size_t ceilNewSize = newSize + FIFO::BlockSize - (newSize % FIFO::BlockSize); size_t oldBlocks = oldSize / FIFO::BlockSize; - size_t newBlocks = newBlocks / FIFO::BlockSize; + size_t newBlocks = ceilNewSize / FIFO::BlockSize; if (oldBlocks == newBlocks) return buffer; diff --git a/icinga2.sln b/icinga2.sln new file mode 100644 index 000000000..5d6be82aa --- /dev/null +++ b/icinga2.sln @@ -0,0 +1,39 @@ + +Microsoft Visual Studio Solution File, Format Version 11.00 +# Visual Studio 2010 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "base", "base\base.vcxproj", "{9C92DA90-FD53-43A9-A244-90F2E8AF9677}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "miniapp", "miniapp\miniapp.vcxproj", "{7CEA8AB1-3327-4644-9D38-B639A8F3341E}" + ProjectSection(ProjectDependencies) = postProject + {9C92DA90-FD53-43A9-A244-90F2E8AF9677} = {9C92DA90-FD53-43A9-A244-90F2E8AF9677} + {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8} = {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "jsonrpc", "jsonrpc\jsonrpc.vcxproj", "{8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}" + ProjectSection(ProjectDependencies) = postProject + {9C92DA90-FD53-43A9-A244-90F2E8AF9677} = {9C92DA90-FD53-43A9-A244-90F2E8AF9677} + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Win32 = Debug|Win32 + Release|Win32 = Release|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {9C92DA90-FD53-43A9-A244-90F2E8AF9677}.Debug|Win32.ActiveCfg = Debug|Win32 + {9C92DA90-FD53-43A9-A244-90F2E8AF9677}.Debug|Win32.Build.0 = Debug|Win32 + {9C92DA90-FD53-43A9-A244-90F2E8AF9677}.Release|Win32.ActiveCfg = Release|Win32 + {9C92DA90-FD53-43A9-A244-90F2E8AF9677}.Release|Win32.Build.0 = Release|Win32 + {7CEA8AB1-3327-4644-9D38-B639A8F3341E}.Debug|Win32.ActiveCfg = Debug|Win32 + {7CEA8AB1-3327-4644-9D38-B639A8F3341E}.Debug|Win32.Build.0 = Debug|Win32 + {7CEA8AB1-3327-4644-9D38-B639A8F3341E}.Release|Win32.ActiveCfg = Release|Win32 + {7CEA8AB1-3327-4644-9D38-B639A8F3341E}.Release|Win32.Build.0 = Release|Win32 + {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Debug|Win32.ActiveCfg = Debug|Win32 + {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Debug|Win32.Build.0 = Debug|Win32 + {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Release|Win32.ActiveCfg = Release|Win32 + {8DD52FAC-ECEE-48C2-B266-E7C47ED485F8}.Release|Win32.Build.0 = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/jsonrpc/i2-jsonrpc.vcxproj b/jsonrpc/jsonrpc.vcxproj similarity index 93% rename from jsonrpc/i2-jsonrpc.vcxproj rename to jsonrpc/jsonrpc.vcxproj index 65543fa33..9b1f7f626 100644 --- a/jsonrpc/i2-jsonrpc.vcxproj +++ b/jsonrpc/jsonrpc.vcxproj @@ -55,11 +55,11 @@ - $(MSBuildProjectDirectory)\..\i2-base;$(IncludePath) + $(MSBuildProjectDirectory)\..\base;$(IncludePath) ..\Debug;$(LibraryPath) - $(MSBuildProjectDirectory)\..\i2-base;$(IncludePath) + $(MSBuildProjectDirectory)\..\base;$(IncludePath) ..\Release;$(LibraryPath) @@ -75,7 +75,7 @@ true - ..\Debug\i2-base.lib + ..\Debug\base.lib @@ -95,7 +95,7 @@ true - ..\Release\i2-base.lib + ..\Release\base.lib diff --git a/miniapp/miniapp.vcxproj b/miniapp/miniapp.vcxproj new file mode 100644 index 000000000..798c45e60 --- /dev/null +++ b/miniapp/miniapp.vcxproj @@ -0,0 +1,89 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {7CEA8AB1-3327-4644-9D38-B639A8F3341E} + Win32Proj + i2miniapp + + + + Application + true + Unicode + + + Application + false + true + Unicode + + + + + + + + + + + + + true + ..\Debug;$(LibraryPath) + $(MSBuildProjectDirectory)\..\base;$(MSBuildProjectDirectory)\..\jsonrpc;$(IncludePath) + + + false + ..\Release;$(LibraryPath) + $(MSBuildProjectDirectory)\..\base;$(MSBuildProjectDirectory)\..\jsonrpc;$(IncludePath) + + + + + + Level3 + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + + + Console + true + base.lib;jsonrpc.lib;%(AdditionalDependencies) + true + + + + + Level3 + + + MaxSpeed + true + true + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + + + Console + true + true + true + base.lib;jsonrpc.lib;%(AdditionalDependencies) + + + + + + + + + \ No newline at end of file -- 2.40.0