FTypedefs.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #ifndef Firebase_FTypedefs_h
  18. #define Firebase_FTypedefs_h
  19. /**
  20. * Stub...
  21. */
  22. @class FIRDataSnapshot;
  23. @class FIRDatabaseReference;
  24. @class FAuthData;
  25. @protocol FNode;
  26. // fbt = Firebase Block Typedef
  27. typedef void (^fbt_void_void)(void);
  28. typedef void (^fbt_void_datasnapshot_nsstring)(FIRDataSnapshot *snapshot,
  29. NSString *prevName);
  30. typedef void (^fbt_void_datasnapshot)(FIRDataSnapshot *snapshot);
  31. typedef void (^fbt_void_user)(FAuthData *user);
  32. typedef void (^fbt_void_nsstring_id)(NSString *status, id data);
  33. typedef void (^fbt_void_nserror_id)(NSError *error, id data);
  34. typedef void (^fbt_void_nserror)(NSError *error);
  35. typedef void (^fbt_void_nserror_ref)(NSError *error, FIRDatabaseReference *ref);
  36. typedef void (^fbt_void_nserror_user)(NSError *error, FAuthData *user);
  37. typedef void (^fbt_void_nserror_json)(NSError *error, NSDictionary *json);
  38. typedef void (^fbt_void_nsdictionary)(NSDictionary *data);
  39. typedef id (^fbt_id_node_nsstring)(id<FNode> node, NSString *childName);
  40. #endif