Diff
Not logged in

Differences From Artifact [4f177ffd04]:

To Artifact [65fc63856a]:


34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
..
58
59
60
61
62
63
64





65
66
67
68
69
70
71
72
73
74
  cont_name: CString,
  access: ref.refType(Permission),
  access_len: usize,
  access_cap: usize
});

export const RegisteredApp = StructType({
  app_id: AppExchangeInfo,
  containers: ref.refType(ContainerPermissions),
  containers_len: usize,
  containers_cap: usize
});

export const RegisteredAppPointer = ref.refType(RegisteredApp);

................................................................................

export const ContainersReq = StructType({
  app: AppExchangeInfo,
  containers: ref.refType(ContainerPermissions),
  containers_len: usize,
  containers_cap: usize
});






export const ContainersReqPointer = ref.refType(ContainersReq);

export const allocAppHandlePointer = () => (ref.alloc(AppHandlePointer));

export const allocCString = (str) => (ref.allocCString(str));

export const allocAuthReq = (req) => (ref.alloc(AuthReq, req));

export const allocContainerReq = (req) => (ref.alloc(ContainersReq, req));







|







 







>
>
>
>
>










34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
..
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
  cont_name: CString,
  access: ref.refType(Permission),
  access_len: usize,
  access_cap: usize
});

export const RegisteredApp = StructType({
  app_info: AppExchangeInfo,
  containers: ref.refType(ContainerPermissions),
  containers_len: usize,
  containers_cap: usize
});

export const RegisteredAppPointer = ref.refType(RegisteredApp);

................................................................................

export const ContainersReq = StructType({
  app: AppExchangeInfo,
  containers: ref.refType(ContainerPermissions),
  containers_len: usize,
  containers_cap: usize
});

export const FfiResult = StructType({
  error_code: int32,
  description: CString
});

export const ContainersReqPointer = ref.refType(ContainersReq);

export const allocAppHandlePointer = () => (ref.alloc(AppHandlePointer));

export const allocCString = (str) => (ref.allocCString(str));

export const allocAuthReq = (req) => (ref.alloc(AuthReq, req));

export const allocContainerReq = (req) => (ref.alloc(ContainersReq, req));