TALLOC_FREE(s);
}
+static void group_enumerate_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct group_enum_state *s =
+ talloc_get_type_abort(userdata, struct group_enum_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_group_enumerate(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, group_enum_setgrent_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ group_enumerate_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void group_by_gid_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct group_by_gid_state *s =
+ talloc_get_type_abort(userdata, struct group_by_gid_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_group_by_gid(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, group_by_gid_getgrgid_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ group_by_gid_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void group_by_name_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct group_by_name_state *s =
+ talloc_get_type_abort(userdata, struct group_by_name_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_group_by_name(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, group_by_name_getgrnam_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ group_by_name_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void group_by_name_gid_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct group_by_name_gid_state *s =
+ talloc_get_type_abort(userdata, struct group_by_name_gid_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_group_by_name_and_gid(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, group_by_name_gid_getgrnamgid_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ group_by_name_gid_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void memberships_enumerate_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct memberships_enum_state *s =
+ talloc_get_type_abort(userdata, struct memberships_enum_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_memberships_enumerate(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, membership_enum_setgrent_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ memberships_enumerate_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void memberships_by_user_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct memberships_by_user_state *s =
+ talloc_get_type_abort(userdata,
+ struct memberships_by_user_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_memberships_by_user(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, memberships_by_user_getgroups_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ memberships_by_user_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void memberships_by_group_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct memberships_by_group_state *s =
+ talloc_get_type_abort(userdata,
+ struct memberships_by_group_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_memberships_by_group(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, memberships_by_group_getgrnam_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ memberships_by_group_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void membership_check_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct membership_check_state *s =
+ talloc_get_type_abort(userdata, struct membership_check_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_membership_check(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, membership_check_getgrnam_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ membership_check_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void user_enum_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct user_enum_state *s =
+ talloc_get_type_abort(userdata, struct user_enum_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_user_enumerate(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, user_enum_setpwent_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ user_enum_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void user_by_uid_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct user_by_uid_state *s =
+ talloc_get_type_abort(userdata, struct user_by_uid_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_user_by_uid(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, user_by_uid_getpwuid_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ user_by_uid_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void user_by_name_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct user_by_name_state *s =
+ talloc_get_type_abort(userdata, struct user_by_name_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_user_by_name(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, user_by_name_getpwnam_done, s);
+ varlink_call_set_connection_closed_callback(call,
+ user_by_name_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);
TALLOC_FREE(s);
}
+static void user_by_name_uid_conn_closed(VarlinkCall *call, void *userdata)
+{
+ struct user_by_name_uid_state *s =
+ talloc_get_type_abort(userdata, struct user_by_name_uid_state);
+ TALLOC_FREE(s);
+}
+
NTSTATUS wb_vl_user_by_name_and_uid(TALLOC_CTX *mem_ctx,
struct tevent_context *ev_ctx,
VarlinkCall *call,
}
tevent_req_set_callback(req, user_by_name_uid_getpwnamuid_done, s);
+ varlink_call_set_connection_closed_callback(
+ call,
+ user_by_name_uid_conn_closed,
+ s);
+
return NT_STATUS_OK;
fail:
TALLOC_FREE(s);