Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
dart_pdf
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David PHAM-VAN
2021-04-23 07:23:26 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4cdf1f7921846fc27b10cf60152bc501422b5901
4cdf1f79
1 parent
0aff88f4
Fix lint warnings
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
printing/CHANGELOG.md
printing/lib/src/method_channel_ffi.dart
printing/CHANGELOG.md
View file @
4cdf1f7
...
...
@@ -8,6 +8,7 @@
-
Add shouldRepaint parameter
-
Fix icon colors
-
Fix Windows build
-
Fix lint warnings
## 5.1.0
...
...
printing/lib/src/method_channel_ffi.dart
View file @
4cdf1f7
...
...
@@ -39,18 +39,18 @@ void setDocumentFfi(PrintJob job, Uint8List data) {
ffi
.
calloc
.
free
(
nativeBytes
);
}
final
_SetDocument_Dart
_setDocument
=
_dynamicLibrary
.
lookupFunction
<
_SetDocument_C
,
_SetDocument_Dart
>(
final
_SetDocumentDart
_setDocument
=
_dynamicLibrary
.
lookupFunction
<
_SetDocumentC
,
_SetDocumentDart
>(
'net_nfet_printing_set_document'
,
);
typedef
_SetDocument
_
C
=
ffi
.
Void
Function
(
typedef
_SetDocumentC
=
ffi
.
Void
Function
(
ffi
.
Uint32
job
,
ffi
.
Pointer
<
ffi
.
Uint8
>
data
,
ffi
.
Uint64
size
,
);
typedef
_SetDocument
_
Dart
=
void
Function
(
typedef
_SetDocumentDart
=
void
Function
(
int
job
,
ffi
.
Pointer
<
ffi
.
Uint8
>
data
,
int
size
,
...
...
@@ -61,17 +61,17 @@ void setErrorFfi(PrintJob job, String message) {
_setError
(
job
.
index
,
ffi
.
StringUtf8Pointer
(
message
).
toNativeUtf8
());
}
final
_SetError_Dart
_setError
=
_dynamicLibrary
.
lookupFunction
<
_SetError_C
,
_SetError_Dart
>(
final
_SetErrorDart
_setError
=
_dynamicLibrary
.
lookupFunction
<
_SetErrorC
,
_SetErrorDart
>(
'net_nfet_printing_set_error'
,
);
typedef
_SetError
_
C
=
ffi
.
Void
Function
(
typedef
_SetErrorC
=
ffi
.
Void
Function
(
ffi
.
Uint32
job
,
ffi
.
Pointer
<
ffi
.
Utf8
>
message
,
);
typedef
_SetError
_
Dart
=
void
Function
(
typedef
_SetErrorDart
=
void
Function
(
int
job
,
ffi
.
Pointer
<
ffi
.
Utf8
>
message
,
);
...
...
Please
register
or
login
to post a comment