Skip to content

Commit

Permalink
Tidy rename instance_id_length to max_instance_id
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Aug 22, 2024
1 parent b575863 commit b6c4afb
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions interop.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@

/*********************************************************************/

bool Interop_CreateInstance(const char *type_name, char *instance_id, int32_t instance_id_length,
void *execute_user_ptr, Interop_ExecuteCallback execute,
Interop_InvokeInstanceCallback *invoke_instance,
bool Interop_CreateInstance(const char *type_name, char *instance_id, int32_t max_instance_id, void *execute_user_ptr,
Interop_ExecuteCallback execute, Interop_InvokeInstanceCallback *invoke_instance,
Interop_ReleaseInstanceCallback *release_instance,
Interop_ProcessInstanceCallback *process_instance, void **user_ptr) {
if (strcmp(type_name, "SSN.Simple") == 0) {
void *context = Simple_Create();
Simple_GetInstanceId(context, instance_id, instance_id_length);
Simple_GetInstanceId(context, instance_id, max_instance_id);

*invoke_instance = Simple_Invoke;
*release_instance = Simple_Release;
Expand Down

0 comments on commit b6c4afb

Please sign in to comment.