# TfLiteRegistration_V2


`#include <common.h>`

\\private Old version of `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration#struct_tf_lite_registration` to maintain binary backward compatibility.

## Summary

The legacy registration type must be a POD struct type whose field types must be a prefix of the field types in [TfLiteRegistration](https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration#struct_tf_lite_registration), and offset of the first field in [TfLiteRegistration](https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration#struct_tf_lite_registration) that is not present in the legacy registration type must be greater than or equal to the size of the legacy registration type.

WARNING: This structure is deprecated / not an official part of the API. It should be only used for binary backward compatibility.

| ### Public attributes ||
|---|---|
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a0c075edae456b4bd026dcabc3281f334` | `int32_t` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1acf4f7e6d364d7633785434da44995434` | `const char *` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1ace633e733322071c48874fc6ca4e6d36)(TfLiteContext *context, void *buffer)` | `void(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a59b9f71c7489fed7ae8d2e953b8673a2)(TfLiteContext *context, const char *buffer, size_t length)` | `void *(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a344d99ad134b326f12749385df41d184)(TfLiteContext *context, TfLiteNode *node)` | `TfLiteStatus(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a1dc7cff8be4f0317a1d788558e79eb77)(TfLiteContext *context, TfLiteNode *node)` | `TfLiteStatus(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1ac8a170ef802a9b5cc7fcffc0e02c0bd7)(const TfLiteContext *context, const TfLiteNode *node)` | `const char *(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a586ca87e91292e0cc20cfa3fd65271fe` | `TfLiteOperator *` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v2#struct_tf_lite_registration___v2_1a2d4eeddba9200a3d89e42c7ab79d16c8` | `int` |

## Public attributes

### builtin_code

```
int32_t TfLiteRegistration_V2::builtin_code
```

### custom_name

```
const char * TfLiteRegistration_V2::custom_name
```

### free

```
void(* TfLiteRegistration_V2::free)(TfLiteContext *context, void *buffer)
```

### init

```
void *(* TfLiteRegistration_V2::init)(TfLiteContext *context, const char *buffer, size_t length)
```

### invoke

```
TfLiteStatus(* TfLiteRegistration_V2::invoke)(TfLiteContext *context, TfLiteNode *node)
```

### prepare

```
TfLiteStatus(* TfLiteRegistration_V2::prepare)(TfLiteContext *context, TfLiteNode *node)
```

### profiling_string

```
const char *(* TfLiteRegistration_V2::profiling_string)(const TfLiteContext *context, const TfLiteNode *node)
```

### registration_external

```
TfLiteOperator * TfLiteRegistration_V2::registration_external
```

### version

```
int TfLiteRegistration_V2::version
```