/core/externals/google-toolbox-for-mac/Foundation/GTMServiceManagementTestingHarness.c

http://macfuse.googlecode.com/ · C · 32 lines · 13 code · 2 blank · 17 comment · 2 complexity · 818d4cc489996f33d04597d3ef8012b5 MD5 · raw file

  1. //
  2. // GTMServiceManagementTestingHarness.c
  3. //
  4. // Copyright 2010 Google Inc.
  5. //
  6. // Licensed under the Apache License, Version 2.0 (the "License"); you may not
  7. // use this file except in compliance with the License. You may obtain a copy
  8. // of the License at
  9. //
  10. // http://www.apache.org/licenses/LICENSE-2.0
  11. //
  12. // Unless required by applicable law or agreed to in writing, software
  13. // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  14. // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  15. // License for the specific language governing permissions and limitations under
  16. // the License.
  17. //
  18. #include "GTMServiceManagement.h"
  19. int main(int argc, const char** argv) {
  20. #if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
  21. CFErrorRef error = NULL;
  22. CFDictionaryRef dict = GTMSMCopyJobCheckInDictionary(&error);
  23. if (!dict) {
  24. CFShow(error);
  25. } else {
  26. CFRelease(dict);
  27. }
  28. #endif // if MAC_OS_X_VERSION_MIN_REQUIRED > MAC_OS_X_VERSION_10_4
  29. return 0;
  30. }