# TfLiteRegistration_V1


`#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-v1#struct_tf_lite_registration___v1_1ac92eb23458307acfc132128fb7c551f0` | `int32_t` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1a4f33e39fb85698b0a1be5bbacfff2414` | `const char *` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1ac860e4daa7dffe6038ccdbbfa838589b)(TfLiteContext *context, void *buffer)` | `void(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1a66732107ee447280fe5e978a304a1ef0)(TfLiteContext *context, const char *buffer, size_t length)` | `void *(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1a41ba960777e606164e3fb192dab9a871)(TfLiteContext *context, TfLiteNode *node)` | `TfLiteStatus(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1af8a623dfd15987168174f1a0df204149)(TfLiteContext *context, TfLiteNode *node)` | `TfLiteStatus(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1ac4803a50f17f05e225c7471a6670cfc8)(const TfLiteContext *context, const TfLiteNode *node)` | `const char *(*` |
| `https://developers.google.com/edge/api/tflite/c/struct/tf-lite-registration-v1#struct_tf_lite_registration___v1_1ac5fb4b2c610c4da73f7e3a05e90a66fa` | `int` |

## Public attributes

### builtin_code

```
int32_t TfLiteRegistration_V1::builtin_code
```

### custom_name

```
const char * TfLiteRegistration_V1::custom_name
```

### free

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

### init

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

### invoke

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

### prepare

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

### profiling_string

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

### version

```
int TfLiteRegistration_V1::version
```