FTypedefs.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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, NSString *prevName);
  29. typedef void (^fbt_void_datasnapshot) (FIRDataSnapshot *snapshot);
  30. typedef void (^fbt_void_user)(FAuthData *user);
  31. typedef void (^fbt_void_nsstring_id)(NSString* status, id data);
  32. typedef void (^fbt_void_nserror_id)(NSError* error, id data);
  33. typedef void (^fbt_void_nserror)(NSError *error);
  34. typedef void (^fbt_void_nserror_ref)(NSError* error, FIRDatabaseReference * ref);
  35. typedef void (^fbt_void_nserror_user)(NSError* error, FAuthData * user);
  36. typedef void (^fbt_void_nserror_json)(NSError* error, NSDictionary* json);
  37. typedef void (^fbt_void_nsdictionary)(NSDictionary *data);
  38. typedef id (^fbt_id_node_nsstring)(id<FNode> node, NSString* childName);
  39. #endif