slidge-whatsapp 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl → 0.3.0__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/contact.py +15 -3
- slidge_whatsapp/event.go +152 -50
- slidge_whatsapp/gateway.go +7 -63
- slidge_whatsapp/gateway.py +2 -3
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +185 -168
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +149 -135
- slidge_whatsapp/generated/whatsapp.c +1883 -1611
- slidge_whatsapp/generated/whatsapp.go +1157 -1046
- slidge_whatsapp/generated/whatsapp.py +1326 -1201
- slidge_whatsapp/generated/whatsapp_go.h +185 -168
- slidge_whatsapp/go.mod +18 -15
- slidge_whatsapp/go.sum +38 -32
- slidge_whatsapp/group.py +34 -30
- slidge_whatsapp/media/media.go +6 -2
- slidge_whatsapp/session.go +34 -17
- slidge_whatsapp/session.py +46 -14
- slidge_whatsapp/vendor/github.com/beeper/argo-go/LICENSE +9 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockreader.go +329 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/block/blockwriter.go +417 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/decoder.go +652 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/codec/encoder.go +985 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/header/header.go +135 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/internal/util/util.go +133 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/label.go +384 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/label/wiremarkers.go +37 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/bitset/bitset.go +197 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/buf/buf.go +420 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/pkg/varint/varint.go +246 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wire/wire.go +614 -0
- slidge_whatsapp/vendor/github.com/beeper/argo-go/wirecodec/decode.go +341 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/list.go +95 -0
- slidge_whatsapp/vendor/github.com/elliotchance/orderedmap/v3/orderedmap.go +187 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz.go +1 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_cgo.go +3 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/fitz_nocgo.go +4 -5
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_darwin.go +11 -1
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_linux.go +10 -0
- slidge_whatsapp/vendor/github.com/gen2brain/go-fitz/purego_windows.go +12 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/.gitignore +0 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +30 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/COPYRIGHT.txt +6 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/README.md +14 -17
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi2.go +7 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/LICENSE +21 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_amd64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/darwin_arm64/libffi.8.dylib +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/assets/libffi/windows_amd64/libffi-8.dll +0 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif.go +15 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/cif_arm64.go +16 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed.go +49 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_darwin_arm64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/embed_windows_amd64.go +10 -0
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +51 -13
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/init.go +22 -9
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +3096 -1651
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +188 -128
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_userauth.go +13 -140
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3ext.h +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +2 -2
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.25.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/LICENSE +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/argmap.go +37 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/collections.go +148 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/comment.go +31 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/decode.go +216 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/definition.go +110 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/directive.go +43 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/document.go +89 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/dumper.go +159 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/fragment.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/operation.go +32 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/path.go +72 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/selection.go +41 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/source.go +19 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/type.go +68 -0
- slidge_whatsapp/vendor/github.com/vektah/gqlparser/v2/ast/value.go +122 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +60 -26
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +1 -6
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/util/exstrings/stringutil.go +104 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +19 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/.pre-commit-config.yaml +3 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/hash.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo-wire-type-store.argo +63 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/argo.go +62 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/argo/name-to-queryids.json +306 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +40 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/binary/encoder.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/call.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +79 -45
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +13 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +19 -12
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +26 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +99 -27
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +54 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +208 -57
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +2 -14
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/newsletter.go +83 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +17 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/extra.go +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.pb.go +983 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/InstamadilloAddMessage.proto +85 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloAddMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.pb.go +197 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeActionLog/InstamadilloCoreTypeActionLog.proto +13 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.pb.go +279 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeAdminMessage/InstamadilloCoreTypeAdminMessage.proto +21 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.pb.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeCollection/InstamadilloCoreTypeCollection.proto +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.pb.go +313 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeLink/InstamadilloCoreTypeLink.proto +27 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.pb.go +1299 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeMedia/InstamadilloCoreTypeMedia.proto +112 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.pb.go +514 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloCoreTypeText/InstamadilloCoreTypeText.proto +47 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.pb.go +123 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/InstamadilloDeleteMessage.proto +7 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloDeleteMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.pb.go +720 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/InstamadilloSupplementMessage.proto +59 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloSupplementMessage/extra.go +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.pb.go +365 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloTransportPayload/InstamadilloTransportPayload.proto +33 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.pb.go +1238 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/instamadilloXmaContentRef/InstamadilloXmaContentRef.proto +105 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +16 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.pb.go +5156 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waBotMetadata/WABotMetadata.proto +516 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.pb.go +46 -10
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WACompanionReg.proto +4 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +8975 -11209
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +193 -421
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +52 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.pb.go +198 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waLidMigrationSyncPayload/WAWebProtobufLidMigrationSyncPayload.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/extra.go +7 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.pb.go +952 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waStatusAttributions/WAStatusAttributions.proto +88 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1143 -463
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +60 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +60 -38
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +3 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +11 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +20 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingfields.json +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/reportingtoken.go +176 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +10 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +38 -21
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +9 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +25 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +4 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/10-chat-db-lid-migration-ts.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +5 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/call.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +13 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/user.go +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +14 -8
- slidge_whatsapp/vendor/golang.org/x/crypto/curve25519/curve25519.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +44 -2
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +8 -8
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +14 -3
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +7 -29
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +53 -71
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +20 -74
- slidge_whatsapp/vendor/golang.org/x/sys/unix/affinity_linux.go +1 -3
- slidge_whatsapp/vendor/golang.org/x/sys/unix/mkerrors.sh +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +1 -55
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_solaris.go +1 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux.go +47 -16
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +3 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +4 -4
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +1 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux.go +168 -12
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +17 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +18 -2
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +6 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +483 -483
- slidge_whatsapp/vendor/google.golang.org/protobuf/encoding/protowire/wire.go +25 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/editiondefaults/editions_defaults.binpb +0 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/editions.go +10 -5
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/filedesc/presence.go +33 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/api_gen.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +68 -22
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/codec_message_opaque.go +2 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/message_opaque.go +8 -37
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/impl/presence.go +0 -3
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +8 -0
- slidge_whatsapp/vendor/modules.txt +57 -23
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/METADATA +5 -4
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/RECORD +254 -174
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/abi_amd64.go +0 -7
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +0 -61
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +0 -16
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +0 -20
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info}/entry_points.txt +0 -0
- {slidge_whatsapp-0.2.6.dist-info → slidge_whatsapp-0.3.0.dist-info/licenses}/LICENSE +0 -0
|
@@ -8,8 +8,8 @@ package main
|
|
|
8
8
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
|
-
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.11-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -1381,6 +1381,18 @@ func handleFromPtr_Ptr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
1381
1381
|
return CGoHandle(gopyh.Register("*whatsapp.Location", p))
|
|
1382
1382
|
}
|
|
1383
1383
|
|
|
1384
|
+
// Converters for pointer handles for type: *whatsapp.LoggedOut
|
|
1385
|
+
func ptrFromHandle_Ptr_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
1386
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.LoggedOut")
|
|
1387
|
+
if p == nil {
|
|
1388
|
+
return nil
|
|
1389
|
+
}
|
|
1390
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
1391
|
+
}
|
|
1392
|
+
func handleFromPtr_Ptr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
1393
|
+
return CGoHandle(gopyh.Register("*whatsapp.LoggedOut", p))
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1384
1396
|
// Converters for pointer handles for type: *whatsapp.Message
|
|
1385
1397
|
func ptrFromHandle_Ptr_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
1386
1398
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "*whatsapp.Message")
|
|
@@ -2025,6 +2037,18 @@ func handleFromPtr_whatsapp_Location(p interface{}) CGoHandle {
|
|
|
2025
2037
|
return CGoHandle(gopyh.Register("whatsapp.Location", p))
|
|
2026
2038
|
}
|
|
2027
2039
|
|
|
2040
|
+
// Converters for non-pointer handles for type: whatsapp.LoggedOut
|
|
2041
|
+
func ptrFromHandle_whatsapp_LoggedOut(h CGoHandle) *whatsapp.LoggedOut {
|
|
2042
|
+
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.LoggedOut")
|
|
2043
|
+
if p == nil {
|
|
2044
|
+
return nil
|
|
2045
|
+
}
|
|
2046
|
+
return gopyh.Embed(p, reflect.TypeOf(whatsapp.LoggedOut{})).(*whatsapp.LoggedOut)
|
|
2047
|
+
}
|
|
2048
|
+
func handleFromPtr_whatsapp_LoggedOut(p interface{}) CGoHandle {
|
|
2049
|
+
return CGoHandle(gopyh.Register("whatsapp.LoggedOut", p))
|
|
2050
|
+
}
|
|
2051
|
+
|
|
2028
2052
|
// Converters for non-pointer handles for type: whatsapp.Message
|
|
2029
2053
|
func ptrFromHandle_whatsapp_Message(h CGoHandle) *whatsapp.Message {
|
|
2030
2054
|
p := gopyh.VarFromHandle((gopyh.CGoHandle)(h), "whatsapp.Message")
|
|
@@ -2115,49 +2139,6 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2139
|
|
|
2116
2140
|
// ---- Structs ---
|
|
2117
2141
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.Presence ---
|
|
2119
|
-
//
|
|
2120
|
-
//export whatsapp_Presence_CTor
|
|
2121
|
-
func whatsapp_Presence_CTor() CGoHandle {
|
|
2122
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2123
|
-
}
|
|
2124
|
-
|
|
2125
|
-
//export whatsapp_Presence_JID_Get
|
|
2126
|
-
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2128
|
-
return C.CString(op.JID)
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2131
|
-
//export whatsapp_Presence_JID_Set
|
|
2132
|
-
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2134
|
-
op.JID = C.GoString(val)
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
//export whatsapp_Presence_Kind_Get
|
|
2138
|
-
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
2139
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2140
|
-
return C.longlong(int(op.Kind))
|
|
2141
|
-
}
|
|
2142
|
-
|
|
2143
|
-
//export whatsapp_Presence_Kind_Set
|
|
2144
|
-
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2145
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2146
|
-
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
//export whatsapp_Presence_LastSeen_Get
|
|
2150
|
-
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2151
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2152
|
-
return C.longlong(op.LastSeen)
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
//export whatsapp_Presence_LastSeen_Set
|
|
2156
|
-
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2157
|
-
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2158
|
-
op.LastSeen = int64(val)
|
|
2159
|
-
}
|
|
2160
|
-
|
|
2161
2142
|
// --- wrapping struct: whatsapp.ChatState ---
|
|
2162
2143
|
//
|
|
2163
2144
|
//export whatsapp_ChatState_CTor
|
|
@@ -2201,355 +2182,156 @@ func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
|
2201
2182
|
op.GroupJID = C.GoString(val)
|
|
2202
2183
|
}
|
|
2203
2184
|
|
|
2204
|
-
// --- wrapping struct: whatsapp.
|
|
2185
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2205
2186
|
//
|
|
2206
|
-
//export
|
|
2207
|
-
func
|
|
2208
|
-
return CGoHandle(
|
|
2187
|
+
//export whatsapp_EventPayload_CTor
|
|
2188
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2209
2190
|
}
|
|
2210
2191
|
|
|
2211
|
-
//export
|
|
2212
|
-
func
|
|
2213
|
-
op :=
|
|
2214
|
-
return C.CString(op.
|
|
2192
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2193
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2195
|
+
return C.CString(op.QRCode)
|
|
2215
2196
|
}
|
|
2216
2197
|
|
|
2217
|
-
//export
|
|
2218
|
-
func
|
|
2219
|
-
op :=
|
|
2220
|
-
op.
|
|
2198
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2199
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2201
|
+
op.QRCode = C.GoString(val)
|
|
2221
2202
|
}
|
|
2222
2203
|
|
|
2223
|
-
//export
|
|
2224
|
-
func
|
|
2225
|
-
op :=
|
|
2226
|
-
return C.CString(op.
|
|
2204
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2205
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2207
|
+
return C.CString(op.PairDeviceID)
|
|
2227
2208
|
}
|
|
2228
2209
|
|
|
2229
|
-
//export
|
|
2230
|
-
func
|
|
2231
|
-
op :=
|
|
2232
|
-
op.
|
|
2210
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2211
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2213
|
+
op.PairDeviceID = C.GoString(val)
|
|
2233
2214
|
}
|
|
2234
2215
|
|
|
2235
|
-
//export
|
|
2236
|
-
func
|
|
2237
|
-
op :=
|
|
2238
|
-
return
|
|
2216
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2217
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2219
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2239
2220
|
}
|
|
2240
2221
|
|
|
2241
|
-
//export
|
|
2242
|
-
func
|
|
2243
|
-
op :=
|
|
2244
|
-
op.
|
|
2222
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2223
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2225
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2245
2226
|
}
|
|
2246
2227
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
op :=
|
|
2250
|
-
return
|
|
2228
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2229
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2231
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2251
2232
|
}
|
|
2252
2233
|
|
|
2253
|
-
//export
|
|
2254
|
-
func
|
|
2255
|
-
op :=
|
|
2256
|
-
op.
|
|
2234
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2235
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2237
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2257
2238
|
}
|
|
2258
2239
|
|
|
2259
|
-
//export
|
|
2260
|
-
func
|
|
2261
|
-
op :=
|
|
2262
|
-
return
|
|
2240
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2241
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2242
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2243
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2263
2244
|
}
|
|
2264
2245
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
op :=
|
|
2268
|
-
op.
|
|
2246
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2247
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2248
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2249
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2269
2250
|
}
|
|
2270
2251
|
|
|
2271
|
-
//
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2252
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2253
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2254
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2255
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2276
2256
|
}
|
|
2277
2257
|
|
|
2278
|
-
//export
|
|
2279
|
-
func
|
|
2280
|
-
op :=
|
|
2281
|
-
|
|
2258
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2259
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2260
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2261
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2282
2262
|
}
|
|
2283
2263
|
|
|
2284
|
-
//export
|
|
2285
|
-
func
|
|
2286
|
-
op :=
|
|
2287
|
-
op.
|
|
2264
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2265
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2266
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2267
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2288
2268
|
}
|
|
2289
2269
|
|
|
2290
|
-
//export
|
|
2291
|
-
func
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
if __err != nil {
|
|
2296
|
-
return handleFromPtr_types_JID(nil)
|
|
2297
|
-
}
|
|
2298
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2270
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2271
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2272
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2273
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2274
|
+
}
|
|
2299
2275
|
|
|
2300
|
-
|
|
2276
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2277
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2278
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2279
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2301
2280
|
}
|
|
2302
2281
|
|
|
2303
|
-
//
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2282
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2283
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2284
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2285
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2308
2286
|
}
|
|
2309
2287
|
|
|
2310
|
-
//export
|
|
2311
|
-
func
|
|
2312
|
-
op :=
|
|
2313
|
-
return
|
|
2288
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2289
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2290
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2291
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2314
2292
|
}
|
|
2315
2293
|
|
|
2316
|
-
//export
|
|
2317
|
-
func
|
|
2318
|
-
op :=
|
|
2319
|
-
op.
|
|
2294
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2295
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2296
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2297
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2320
2298
|
}
|
|
2321
2299
|
|
|
2322
|
-
//export
|
|
2323
|
-
func
|
|
2324
|
-
op :=
|
|
2325
|
-
return
|
|
2300
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2301
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2302
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2303
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2326
2304
|
}
|
|
2327
2305
|
|
|
2328
|
-
//export
|
|
2329
|
-
func
|
|
2330
|
-
op :=
|
|
2331
|
-
op.
|
|
2306
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2307
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2308
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2309
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2332
2310
|
}
|
|
2333
2311
|
|
|
2334
|
-
//export
|
|
2335
|
-
func
|
|
2336
|
-
op :=
|
|
2337
|
-
return
|
|
2312
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2313
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2314
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2315
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2338
2316
|
}
|
|
2339
2317
|
|
|
2340
|
-
//export
|
|
2341
|
-
func
|
|
2342
|
-
op :=
|
|
2343
|
-
op.
|
|
2318
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2319
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2320
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2321
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2344
2322
|
}
|
|
2345
2323
|
|
|
2346
|
-
//
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2324
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2325
|
+
//
|
|
2326
|
+
//export whatsapp_Gateway_CTor
|
|
2327
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2328
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2350
2329
|
}
|
|
2351
2330
|
|
|
2352
|
-
//export
|
|
2353
|
-
func
|
|
2354
|
-
op :=
|
|
2355
|
-
op.
|
|
2356
|
-
}
|
|
2357
|
-
|
|
2358
|
-
//export whatsapp_Location_Name_Get
|
|
2359
|
-
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2360
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2361
|
-
return C.CString(op.Name)
|
|
2362
|
-
}
|
|
2363
|
-
|
|
2364
|
-
//export whatsapp_Location_Name_Set
|
|
2365
|
-
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2366
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2367
|
-
op.Name = C.GoString(val)
|
|
2368
|
-
}
|
|
2369
|
-
|
|
2370
|
-
//export whatsapp_Location_Address_Get
|
|
2371
|
-
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2372
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2373
|
-
return C.CString(op.Address)
|
|
2374
|
-
}
|
|
2375
|
-
|
|
2376
|
-
//export whatsapp_Location_Address_Set
|
|
2377
|
-
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2378
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2379
|
-
op.Address = C.GoString(val)
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
//export whatsapp_Location_URL_Get
|
|
2383
|
-
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2384
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2385
|
-
return C.CString(op.URL)
|
|
2386
|
-
}
|
|
2387
|
-
|
|
2388
|
-
//export whatsapp_Location_URL_Set
|
|
2389
|
-
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2390
|
-
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2391
|
-
op.URL = C.GoString(val)
|
|
2392
|
-
}
|
|
2393
|
-
|
|
2394
|
-
// --- wrapping struct: whatsapp.Poll ---
|
|
2395
|
-
//
|
|
2396
|
-
//export whatsapp_Poll_CTor
|
|
2397
|
-
func whatsapp_Poll_CTor() CGoHandle {
|
|
2398
|
-
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
2399
|
-
}
|
|
2400
|
-
|
|
2401
|
-
//export whatsapp_Poll_Title_Get
|
|
2402
|
-
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
2403
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2404
|
-
return C.CString(op.Title)
|
|
2405
|
-
}
|
|
2406
|
-
|
|
2407
|
-
//export whatsapp_Poll_Title_Set
|
|
2408
|
-
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
2409
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2410
|
-
op.Title = C.GoString(val)
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
//export whatsapp_Poll_Options_Get
|
|
2414
|
-
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
2415
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2416
|
-
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
//export whatsapp_Poll_Options_Set
|
|
2420
|
-
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
2421
|
-
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2422
|
-
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
2423
|
-
}
|
|
2424
|
-
|
|
2425
|
-
// --- wrapping struct: whatsapp.Attachment ---
|
|
2426
|
-
//
|
|
2427
|
-
//export whatsapp_Attachment_CTor
|
|
2428
|
-
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2429
|
-
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2430
|
-
}
|
|
2431
|
-
|
|
2432
|
-
//export whatsapp_Attachment_MIME_Get
|
|
2433
|
-
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2434
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2435
|
-
return C.CString(op.MIME)
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
//export whatsapp_Attachment_MIME_Set
|
|
2439
|
-
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2440
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2441
|
-
op.MIME = C.GoString(val)
|
|
2442
|
-
}
|
|
2443
|
-
|
|
2444
|
-
//export whatsapp_Attachment_Filename_Get
|
|
2445
|
-
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2446
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2447
|
-
return C.CString(op.Filename)
|
|
2448
|
-
}
|
|
2449
|
-
|
|
2450
|
-
//export whatsapp_Attachment_Filename_Set
|
|
2451
|
-
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2452
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2453
|
-
op.Filename = C.GoString(val)
|
|
2454
|
-
}
|
|
2455
|
-
|
|
2456
|
-
//export whatsapp_Attachment_Caption_Get
|
|
2457
|
-
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2458
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2459
|
-
return C.CString(op.Caption)
|
|
2460
|
-
}
|
|
2461
|
-
|
|
2462
|
-
//export whatsapp_Attachment_Caption_Set
|
|
2463
|
-
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2464
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2465
|
-
op.Caption = C.GoString(val)
|
|
2466
|
-
}
|
|
2467
|
-
|
|
2468
|
-
//export whatsapp_Attachment_Data_Get
|
|
2469
|
-
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2470
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2471
|
-
return handleFromPtr_Slice_byte(&op.Data)
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
//export whatsapp_Attachment_Data_Set
|
|
2475
|
-
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2476
|
-
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2477
|
-
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2478
|
-
}
|
|
2479
|
-
|
|
2480
|
-
//export whatsapp_Attachment_GetSpec
|
|
2481
|
-
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2482
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
2483
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2484
|
-
if __err != nil {
|
|
2485
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2486
|
-
}
|
|
2487
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2488
|
-
|
|
2489
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2490
|
-
if __err != nil {
|
|
2491
|
-
estr := C.CString(__err.Error())
|
|
2492
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2493
|
-
C.free(unsafe.Pointer(estr))
|
|
2494
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2495
|
-
}
|
|
2496
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2497
|
-
}
|
|
2498
|
-
|
|
2499
|
-
// --- wrapping struct: whatsapp.Call ---
|
|
2500
|
-
//
|
|
2501
|
-
//export whatsapp_Call_CTor
|
|
2502
|
-
func whatsapp_Call_CTor() CGoHandle {
|
|
2503
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2504
|
-
}
|
|
2505
|
-
|
|
2506
|
-
//export whatsapp_Call_State_Get
|
|
2507
|
-
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2508
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2509
|
-
return C.longlong(int(op.State))
|
|
2510
|
-
}
|
|
2511
|
-
|
|
2512
|
-
//export whatsapp_Call_State_Set
|
|
2513
|
-
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2514
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2515
|
-
op.State = whatsapp.CallState(int(val))
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
//export whatsapp_Call_JID_Get
|
|
2519
|
-
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2520
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2521
|
-
return C.CString(op.JID)
|
|
2522
|
-
}
|
|
2523
|
-
|
|
2524
|
-
//export whatsapp_Call_JID_Set
|
|
2525
|
-
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2526
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2527
|
-
op.JID = C.GoString(val)
|
|
2528
|
-
}
|
|
2529
|
-
|
|
2530
|
-
//export whatsapp_Call_Timestamp_Get
|
|
2531
|
-
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2532
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2533
|
-
return C.longlong(op.Timestamp)
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
//export whatsapp_Call_Timestamp_Set
|
|
2537
|
-
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2538
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2539
|
-
op.Timestamp = int64(val)
|
|
2540
|
-
}
|
|
2541
|
-
|
|
2542
|
-
// --- wrapping struct: whatsapp.Gateway ---
|
|
2543
|
-
//
|
|
2544
|
-
//export whatsapp_Gateway_CTor
|
|
2545
|
-
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2546
|
-
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
//export whatsapp_Gateway_DBPath_Get
|
|
2550
|
-
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2551
|
-
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2552
|
-
return C.CString(op.DBPath)
|
|
2331
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2332
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2333
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2334
|
+
return C.CString(op.DBPath)
|
|
2553
2335
|
}
|
|
2554
2336
|
|
|
2555
2337
|
//export whatsapp_Gateway_DBPath_Set
|
|
@@ -2642,346 +2424,616 @@ func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.cha
|
|
|
2642
2424
|
return C.CString("")
|
|
2643
2425
|
}
|
|
2644
2426
|
|
|
2645
|
-
// --- wrapping struct: whatsapp.
|
|
2427
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2646
2428
|
//
|
|
2647
|
-
//export
|
|
2648
|
-
func
|
|
2649
|
-
return CGoHandle(
|
|
2429
|
+
//export whatsapp_PollOption_CTor
|
|
2430
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2431
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2650
2432
|
}
|
|
2651
2433
|
|
|
2652
|
-
//export
|
|
2653
|
-
func
|
|
2654
|
-
op :=
|
|
2655
|
-
return C.CString(op.
|
|
2434
|
+
//export whatsapp_PollOption_Title_Get
|
|
2435
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2436
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2437
|
+
return C.CString(op.Title)
|
|
2656
2438
|
}
|
|
2657
2439
|
|
|
2658
|
-
//export
|
|
2659
|
-
func
|
|
2660
|
-
op :=
|
|
2661
|
-
op.
|
|
2440
|
+
//export whatsapp_PollOption_Title_Set
|
|
2441
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2442
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2443
|
+
op.Title = C.GoString(val)
|
|
2662
2444
|
}
|
|
2663
2445
|
|
|
2664
|
-
//
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2446
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2447
|
+
//
|
|
2448
|
+
//export whatsapp_Session_CTor
|
|
2449
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2450
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2668
2451
|
}
|
|
2669
2452
|
|
|
2670
|
-
//export
|
|
2671
|
-
func
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2453
|
+
//export whatsapp_Session_Login
|
|
2454
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2455
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2456
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2457
|
+
if __err != nil {
|
|
2458
|
+
return errorGoToPy(nil)
|
|
2459
|
+
}
|
|
2460
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2675
2461
|
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2462
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2463
|
+
if __err != nil {
|
|
2464
|
+
estr := C.CString(__err.Error())
|
|
2465
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2466
|
+
return estr
|
|
2467
|
+
}
|
|
2468
|
+
return C.CString("")
|
|
2680
2469
|
}
|
|
2681
2470
|
|
|
2682
|
-
//export
|
|
2683
|
-
func
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2471
|
+
//export whatsapp_Session_Logout
|
|
2472
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2473
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2474
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2475
|
+
if __err != nil {
|
|
2476
|
+
return errorGoToPy(nil)
|
|
2477
|
+
}
|
|
2478
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2687
2479
|
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2480
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2481
|
+
if __err != nil {
|
|
2482
|
+
estr := C.CString(__err.Error())
|
|
2483
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2484
|
+
return estr
|
|
2485
|
+
}
|
|
2486
|
+
return C.CString("")
|
|
2693
2487
|
}
|
|
2694
2488
|
|
|
2695
|
-
//export
|
|
2696
|
-
func
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2489
|
+
//export whatsapp_Session_Disconnect
|
|
2490
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2491
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2492
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2493
|
+
if __err != nil {
|
|
2494
|
+
return errorGoToPy(nil)
|
|
2495
|
+
}
|
|
2496
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2700
2497
|
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2498
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2499
|
+
if __err != nil {
|
|
2500
|
+
estr := C.CString(__err.Error())
|
|
2501
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2502
|
+
return estr
|
|
2503
|
+
}
|
|
2504
|
+
return C.CString("")
|
|
2705
2505
|
}
|
|
2706
2506
|
|
|
2707
|
-
//export
|
|
2708
|
-
func
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2507
|
+
//export whatsapp_Session_PairPhone
|
|
2508
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2509
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2510
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2511
|
+
if __err != nil {
|
|
2512
|
+
return C.CString("")
|
|
2513
|
+
}
|
|
2514
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2712
2515
|
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2516
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2517
|
+
if __err != nil {
|
|
2518
|
+
estr := C.CString(__err.Error())
|
|
2519
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2520
|
+
C.free(unsafe.Pointer(estr))
|
|
2521
|
+
return C.CString("")
|
|
2522
|
+
}
|
|
2523
|
+
return C.CString(cret)
|
|
2717
2524
|
}
|
|
2718
2525
|
|
|
2719
|
-
//export
|
|
2720
|
-
func
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2526
|
+
//export whatsapp_Session_SendMessage
|
|
2527
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2528
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2529
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2530
|
+
if __err != nil {
|
|
2531
|
+
return errorGoToPy(nil)
|
|
2532
|
+
}
|
|
2533
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2724
2534
|
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2535
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2536
|
+
if __err != nil {
|
|
2537
|
+
estr := C.CString(__err.Error())
|
|
2538
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2539
|
+
return estr
|
|
2540
|
+
}
|
|
2541
|
+
return C.CString("")
|
|
2729
2542
|
}
|
|
2730
2543
|
|
|
2731
|
-
//
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2544
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2545
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2546
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2547
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2548
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2549
|
+
if __err != nil {
|
|
2550
|
+
return C.CString("")
|
|
2551
|
+
}
|
|
2552
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2737
2553
|
|
|
2738
|
-
//export whatsapp_Preview_Kind_Get
|
|
2739
|
-
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2740
|
-
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2741
|
-
return C.longlong(int(op.Kind))
|
|
2742
2554
|
}
|
|
2743
2555
|
|
|
2744
|
-
//export
|
|
2745
|
-
func
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2556
|
+
//export whatsapp_Session_SendChatState
|
|
2557
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2558
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2559
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2560
|
+
if __err != nil {
|
|
2561
|
+
return errorGoToPy(nil)
|
|
2562
|
+
}
|
|
2563
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2749
2564
|
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2565
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2566
|
+
if __err != nil {
|
|
2567
|
+
estr := C.CString(__err.Error())
|
|
2568
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2569
|
+
return estr
|
|
2570
|
+
}
|
|
2571
|
+
return C.CString("")
|
|
2754
2572
|
}
|
|
2755
2573
|
|
|
2756
|
-
//export
|
|
2757
|
-
func
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2574
|
+
//export whatsapp_Session_SendReceipt
|
|
2575
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
2576
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2577
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2578
|
+
if __err != nil {
|
|
2579
|
+
return errorGoToPy(nil)
|
|
2580
|
+
}
|
|
2581
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2761
2582
|
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2583
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2584
|
+
if __err != nil {
|
|
2585
|
+
estr := C.CString(__err.Error())
|
|
2586
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2587
|
+
return estr
|
|
2588
|
+
}
|
|
2589
|
+
return C.CString("")
|
|
2766
2590
|
}
|
|
2767
2591
|
|
|
2768
|
-
//export
|
|
2769
|
-
func
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2592
|
+
//export whatsapp_Session_SendPresence
|
|
2593
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
2594
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2595
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2596
|
+
if __err != nil {
|
|
2597
|
+
return errorGoToPy(nil)
|
|
2598
|
+
}
|
|
2599
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2773
2600
|
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2601
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2602
|
+
if __err != nil {
|
|
2603
|
+
estr := C.CString(__err.Error())
|
|
2604
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2605
|
+
return estr
|
|
2606
|
+
}
|
|
2607
|
+
return C.CString("")
|
|
2778
2608
|
}
|
|
2779
2609
|
|
|
2780
|
-
//export
|
|
2781
|
-
func
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2610
|
+
//export whatsapp_Session_GetContacts
|
|
2611
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2612
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2613
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2614
|
+
if __err != nil {
|
|
2615
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2616
|
+
}
|
|
2617
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2785
2618
|
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2619
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2620
|
+
if __err != nil {
|
|
2621
|
+
estr := C.CString(__err.Error())
|
|
2622
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2623
|
+
C.free(unsafe.Pointer(estr))
|
|
2624
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2625
|
+
}
|
|
2626
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2790
2627
|
}
|
|
2791
2628
|
|
|
2792
|
-
//export
|
|
2793
|
-
func
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2629
|
+
//export whatsapp_Session_GetGroups
|
|
2630
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
2631
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2632
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2633
|
+
if __err != nil {
|
|
2634
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2635
|
+
}
|
|
2636
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2797
2637
|
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2638
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2639
|
+
if __err != nil {
|
|
2640
|
+
estr := C.CString(__err.Error())
|
|
2641
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2642
|
+
C.free(unsafe.Pointer(estr))
|
|
2643
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2644
|
+
}
|
|
2645
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2803
2646
|
}
|
|
2804
2647
|
|
|
2805
|
-
//export
|
|
2806
|
-
func
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2648
|
+
//export whatsapp_Session_CreateGroup
|
|
2649
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
2650
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2651
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2652
|
+
if __err != nil {
|
|
2653
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2654
|
+
}
|
|
2655
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2810
2656
|
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2657
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2658
|
+
if __err != nil {
|
|
2659
|
+
estr := C.CString(__err.Error())
|
|
2660
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2661
|
+
C.free(unsafe.Pointer(estr))
|
|
2662
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
2663
|
+
}
|
|
2664
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2815
2665
|
}
|
|
2816
2666
|
|
|
2817
|
-
//export
|
|
2818
|
-
func
|
|
2819
|
-
|
|
2820
|
-
|
|
2667
|
+
//export whatsapp_Session_LeaveGroup
|
|
2668
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
2669
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2670
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2671
|
+
if __err != nil {
|
|
2672
|
+
return errorGoToPy(nil)
|
|
2673
|
+
}
|
|
2674
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2675
|
+
|
|
2676
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2677
|
+
if __err != nil {
|
|
2678
|
+
estr := C.CString(__err.Error())
|
|
2679
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2680
|
+
return estr
|
|
2681
|
+
}
|
|
2682
|
+
return C.CString("")
|
|
2821
2683
|
}
|
|
2822
2684
|
|
|
2823
|
-
//export
|
|
2824
|
-
func
|
|
2825
|
-
|
|
2826
|
-
|
|
2685
|
+
//export whatsapp_Session_GetAvatar
|
|
2686
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
2687
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2688
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2689
|
+
if __err != nil {
|
|
2690
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2691
|
+
}
|
|
2692
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2693
|
+
|
|
2694
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2695
|
+
if __err != nil {
|
|
2696
|
+
estr := C.CString(__err.Error())
|
|
2697
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2698
|
+
C.free(unsafe.Pointer(estr))
|
|
2699
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2700
|
+
}
|
|
2701
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2827
2702
|
}
|
|
2828
2703
|
|
|
2829
|
-
//
|
|
2704
|
+
//export whatsapp_Session_SetAvatar
|
|
2705
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
2706
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2707
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2708
|
+
if __err != nil {
|
|
2709
|
+
return C.CString("")
|
|
2710
|
+
}
|
|
2711
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2712
|
+
|
|
2713
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2714
|
+
if __err != nil {
|
|
2715
|
+
estr := C.CString(__err.Error())
|
|
2716
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2717
|
+
C.free(unsafe.Pointer(estr))
|
|
2718
|
+
return C.CString("")
|
|
2719
|
+
}
|
|
2720
|
+
return C.CString(cret)
|
|
2721
|
+
}
|
|
2722
|
+
|
|
2723
|
+
//export whatsapp_Session_SetGroupName
|
|
2724
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
2725
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2726
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2727
|
+
if __err != nil {
|
|
2728
|
+
return errorGoToPy(nil)
|
|
2729
|
+
}
|
|
2730
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2731
|
+
|
|
2732
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2733
|
+
if __err != nil {
|
|
2734
|
+
estr := C.CString(__err.Error())
|
|
2735
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2736
|
+
return estr
|
|
2737
|
+
}
|
|
2738
|
+
return C.CString("")
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
//export whatsapp_Session_SetGroupTopic
|
|
2742
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
2743
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2744
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2745
|
+
if __err != nil {
|
|
2746
|
+
return errorGoToPy(nil)
|
|
2747
|
+
}
|
|
2748
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2749
|
+
|
|
2750
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2751
|
+
if __err != nil {
|
|
2752
|
+
estr := C.CString(__err.Error())
|
|
2753
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2754
|
+
return estr
|
|
2755
|
+
}
|
|
2756
|
+
return C.CString("")
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
2760
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
2761
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2762
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2763
|
+
if __err != nil {
|
|
2764
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2765
|
+
}
|
|
2766
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2767
|
+
|
|
2768
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2769
|
+
if __err != nil {
|
|
2770
|
+
estr := C.CString(__err.Error())
|
|
2771
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2772
|
+
C.free(unsafe.Pointer(estr))
|
|
2773
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2774
|
+
}
|
|
2775
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
//export whatsapp_Session_FindContact
|
|
2779
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
2780
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2781
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2782
|
+
if __err != nil {
|
|
2783
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2784
|
+
}
|
|
2785
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2786
|
+
|
|
2787
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2788
|
+
if __err != nil {
|
|
2789
|
+
estr := C.CString(__err.Error())
|
|
2790
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2791
|
+
C.free(unsafe.Pointer(estr))
|
|
2792
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
2793
|
+
}
|
|
2794
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
2798
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
2799
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2800
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2801
|
+
if __err != nil {
|
|
2802
|
+
return errorGoToPy(nil)
|
|
2803
|
+
}
|
|
2804
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2805
|
+
|
|
2806
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2807
|
+
if __err != nil {
|
|
2808
|
+
estr := C.CString(__err.Error())
|
|
2809
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2810
|
+
return estr
|
|
2811
|
+
}
|
|
2812
|
+
return C.CString("")
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
//export whatsapp_Session_SetEventHandler
|
|
2816
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
2817
|
+
_fun_arg := h
|
|
2818
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2819
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2820
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2821
|
+
if __err != nil {
|
|
2822
|
+
return
|
|
2823
|
+
}
|
|
2824
|
+
if boolPyToGo(goRun) {
|
|
2825
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2826
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2827
|
+
return
|
|
2828
|
+
}
|
|
2829
|
+
_gstate := C.PyGILState_Ensure()
|
|
2830
|
+
_fcargs := C.PyTuple_New(2)
|
|
2831
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2832
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2833
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2834
|
+
C.gopy_decref(_fcargs)
|
|
2835
|
+
C.gopy_err_handle()
|
|
2836
|
+
C.PyGILState_Release(_gstate)
|
|
2837
|
+
})
|
|
2838
|
+
} else {
|
|
2839
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2840
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2841
|
+
return
|
|
2842
|
+
}
|
|
2843
|
+
_gstate := C.PyGILState_Ensure()
|
|
2844
|
+
_fcargs := C.PyTuple_New(2)
|
|
2845
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2846
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2847
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2848
|
+
C.gopy_decref(_fcargs)
|
|
2849
|
+
C.gopy_err_handle()
|
|
2850
|
+
C.PyGILState_Release(_gstate)
|
|
2851
|
+
})
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
|
|
2855
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
2830
2856
|
//
|
|
2831
|
-
//export
|
|
2832
|
-
func
|
|
2833
|
-
return CGoHandle(
|
|
2857
|
+
//export whatsapp_Album_CTor
|
|
2858
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
2859
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
2834
2860
|
}
|
|
2835
2861
|
|
|
2836
|
-
//export
|
|
2837
|
-
func
|
|
2838
|
-
op :=
|
|
2839
|
-
return
|
|
2862
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
2863
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
2864
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2865
|
+
return boolGoToPy(op.IsAlbum)
|
|
2840
2866
|
}
|
|
2841
2867
|
|
|
2842
|
-
//export
|
|
2843
|
-
func
|
|
2844
|
-
op :=
|
|
2845
|
-
op.
|
|
2868
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
2869
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
2870
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2871
|
+
op.IsAlbum = boolPyToGo(val)
|
|
2846
2872
|
}
|
|
2847
2873
|
|
|
2848
|
-
//export
|
|
2849
|
-
func
|
|
2850
|
-
op :=
|
|
2851
|
-
return C.
|
|
2874
|
+
//export whatsapp_Album_ImageCount_Get
|
|
2875
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
2876
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2877
|
+
return C.longlong(op.ImageCount)
|
|
2852
2878
|
}
|
|
2853
2879
|
|
|
2854
|
-
//export
|
|
2855
|
-
func
|
|
2856
|
-
op :=
|
|
2857
|
-
op.
|
|
2880
|
+
//export whatsapp_Album_ImageCount_Set
|
|
2881
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
2882
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2883
|
+
op.ImageCount = int(val)
|
|
2858
2884
|
}
|
|
2859
2885
|
|
|
2860
|
-
//export
|
|
2861
|
-
func
|
|
2862
|
-
op :=
|
|
2863
|
-
return
|
|
2886
|
+
//export whatsapp_Album_VideoCount_Get
|
|
2887
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
2888
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2889
|
+
return C.longlong(op.VideoCount)
|
|
2864
2890
|
}
|
|
2865
2891
|
|
|
2866
|
-
//export
|
|
2867
|
-
func
|
|
2868
|
-
op :=
|
|
2869
|
-
op.
|
|
2892
|
+
//export whatsapp_Album_VideoCount_Set
|
|
2893
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
2894
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
2895
|
+
op.VideoCount = int(val)
|
|
2870
2896
|
}
|
|
2871
2897
|
|
|
2872
|
-
//
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2898
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2899
|
+
//
|
|
2900
|
+
//export whatsapp_Call_CTor
|
|
2901
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2902
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2876
2903
|
}
|
|
2877
2904
|
|
|
2878
|
-
//export
|
|
2879
|
-
func
|
|
2880
|
-
op :=
|
|
2881
|
-
op.
|
|
2905
|
+
//export whatsapp_Call_State_Get
|
|
2906
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2907
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2908
|
+
return C.longlong(int(op.State))
|
|
2882
2909
|
}
|
|
2883
2910
|
|
|
2884
|
-
//export
|
|
2885
|
-
func
|
|
2886
|
-
op :=
|
|
2887
|
-
|
|
2911
|
+
//export whatsapp_Call_State_Set
|
|
2912
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2913
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2914
|
+
op.State = whatsapp.CallState(int(val))
|
|
2888
2915
|
}
|
|
2889
2916
|
|
|
2890
|
-
//export
|
|
2891
|
-
func
|
|
2892
|
-
op :=
|
|
2893
|
-
op.
|
|
2917
|
+
//export whatsapp_Call_JID_Get
|
|
2918
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2919
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2920
|
+
return C.CString(op.JID)
|
|
2894
2921
|
}
|
|
2895
2922
|
|
|
2896
|
-
//export
|
|
2897
|
-
func
|
|
2898
|
-
op :=
|
|
2899
|
-
|
|
2923
|
+
//export whatsapp_Call_JID_Set
|
|
2924
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2925
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2926
|
+
op.JID = C.GoString(val)
|
|
2900
2927
|
}
|
|
2901
2928
|
|
|
2902
|
-
//export
|
|
2903
|
-
func
|
|
2904
|
-
op :=
|
|
2905
|
-
op.
|
|
2929
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2930
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2931
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2932
|
+
return C.longlong(op.Timestamp)
|
|
2906
2933
|
}
|
|
2907
2934
|
|
|
2908
|
-
//export
|
|
2909
|
-
func
|
|
2910
|
-
op :=
|
|
2911
|
-
|
|
2935
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2936
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2937
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2938
|
+
op.Timestamp = int64(val)
|
|
2912
2939
|
}
|
|
2913
2940
|
|
|
2914
|
-
//
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2941
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2942
|
+
//
|
|
2943
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2944
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2945
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2918
2946
|
}
|
|
2919
2947
|
|
|
2920
|
-
//export
|
|
2921
|
-
func
|
|
2922
|
-
op :=
|
|
2923
|
-
return
|
|
2948
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2949
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2950
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2951
|
+
return C.CString(op.JID)
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2955
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2956
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2957
|
+
op.JID = C.GoString(val)
|
|
2958
|
+
}
|
|
2959
|
+
|
|
2960
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
2961
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
2962
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2963
|
+
return C.CString(op.Nickname)
|
|
2964
|
+
}
|
|
2965
|
+
|
|
2966
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
2967
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2968
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2969
|
+
op.Nickname = C.GoString(val)
|
|
2970
|
+
}
|
|
2971
|
+
|
|
2972
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2973
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2974
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2975
|
+
return C.longlong(int(op.Affiliation))
|
|
2924
2976
|
}
|
|
2925
2977
|
|
|
2926
|
-
//export
|
|
2927
|
-
func
|
|
2928
|
-
op :=
|
|
2929
|
-
op.
|
|
2978
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2979
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2980
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2981
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2930
2982
|
}
|
|
2931
2983
|
|
|
2932
|
-
//export
|
|
2933
|
-
func
|
|
2934
|
-
op :=
|
|
2935
|
-
return
|
|
2984
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2985
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2986
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2987
|
+
return C.longlong(int(op.Action))
|
|
2936
2988
|
}
|
|
2937
2989
|
|
|
2938
|
-
//export
|
|
2939
|
-
func
|
|
2940
|
-
op :=
|
|
2941
|
-
op.
|
|
2990
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2991
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2992
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2993
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2942
2994
|
}
|
|
2943
2995
|
|
|
2944
|
-
//
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2996
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2997
|
+
//
|
|
2998
|
+
//export whatsapp_GroupSubject_CTor
|
|
2999
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3000
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2948
3001
|
}
|
|
2949
3002
|
|
|
2950
|
-
//export
|
|
2951
|
-
func
|
|
2952
|
-
op :=
|
|
2953
|
-
op.
|
|
3003
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3004
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3005
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3006
|
+
return C.CString(op.Subject)
|
|
2954
3007
|
}
|
|
2955
3008
|
|
|
2956
|
-
//
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3009
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3010
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3011
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3012
|
+
op.Subject = C.GoString(val)
|
|
2961
3013
|
}
|
|
2962
3014
|
|
|
2963
|
-
//export
|
|
2964
|
-
func
|
|
2965
|
-
op :=
|
|
2966
|
-
return C.
|
|
3015
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3016
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3017
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3018
|
+
return C.longlong(op.SetAt)
|
|
2967
3019
|
}
|
|
2968
3020
|
|
|
2969
|
-
//export
|
|
2970
|
-
func
|
|
2971
|
-
op :=
|
|
2972
|
-
op.
|
|
3021
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3022
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3023
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3024
|
+
op.SetAt = int64(val)
|
|
2973
3025
|
}
|
|
2974
3026
|
|
|
2975
|
-
//export
|
|
2976
|
-
func
|
|
2977
|
-
op :=
|
|
2978
|
-
return C.CString(op.
|
|
3027
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
3028
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
3029
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3030
|
+
return C.CString(op.SetBy)
|
|
2979
3031
|
}
|
|
2980
3032
|
|
|
2981
|
-
//export
|
|
2982
|
-
func
|
|
2983
|
-
op :=
|
|
2984
|
-
op.
|
|
3033
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
3034
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
3035
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3036
|
+
op.SetBy = C.GoString(val)
|
|
2985
3037
|
}
|
|
2986
3038
|
|
|
2987
3039
|
// --- wrapping struct: whatsapp.Message ---
|
|
@@ -3183,6 +3235,18 @@ func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
|
3183
3235
|
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3184
3236
|
}
|
|
3185
3237
|
|
|
3238
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
3239
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
3240
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3241
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
3242
|
+
}
|
|
3243
|
+
|
|
3244
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
3245
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
3246
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3247
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
3248
|
+
}
|
|
3249
|
+
|
|
3186
3250
|
//export whatsapp_Message_MentionJIDs_Get
|
|
3187
3251
|
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3188
3252
|
op := ptrFromHandle_whatsapp_Message(handle)
|
|
@@ -3213,591 +3277,630 @@ func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
|
3213
3277
|
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3214
3278
|
}
|
|
3215
3279
|
|
|
3216
|
-
//export whatsapp_Message_Reactions_Set
|
|
3217
|
-
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3218
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3219
|
-
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3280
|
+
//export whatsapp_Message_Reactions_Set
|
|
3281
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3282
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3283
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3284
|
+
}
|
|
3285
|
+
|
|
3286
|
+
//export whatsapp_Message_IsHistory_Get
|
|
3287
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
3288
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3289
|
+
return boolGoToPy(op.IsHistory)
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
//export whatsapp_Message_IsHistory_Set
|
|
3293
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
3294
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3295
|
+
op.IsHistory = boolPyToGo(val)
|
|
3296
|
+
}
|
|
3297
|
+
|
|
3298
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3299
|
+
//
|
|
3300
|
+
//export whatsapp_Receipt_CTor
|
|
3301
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3302
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3305
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3306
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3307
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3308
|
+
return C.longlong(int(op.Kind))
|
|
3309
|
+
}
|
|
3310
|
+
|
|
3311
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3312
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3313
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3314
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3315
|
+
}
|
|
3316
|
+
|
|
3317
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3318
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3319
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3320
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3321
|
+
}
|
|
3322
|
+
|
|
3323
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3324
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3325
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3326
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3327
|
+
}
|
|
3328
|
+
|
|
3329
|
+
//export whatsapp_Receipt_JID_Get
|
|
3330
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3331
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3332
|
+
return C.CString(op.JID)
|
|
3333
|
+
}
|
|
3334
|
+
|
|
3335
|
+
//export whatsapp_Receipt_JID_Set
|
|
3336
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3337
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3338
|
+
op.JID = C.GoString(val)
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3342
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3343
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3344
|
+
return C.CString(op.GroupJID)
|
|
3345
|
+
}
|
|
3346
|
+
|
|
3347
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3348
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3349
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3350
|
+
op.GroupJID = C.GoString(val)
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3354
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3355
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3356
|
+
return C.longlong(op.Timestamp)
|
|
3357
|
+
}
|
|
3358
|
+
|
|
3359
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3360
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3361
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3362
|
+
op.Timestamp = int64(val)
|
|
3363
|
+
}
|
|
3364
|
+
|
|
3365
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3366
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3367
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3368
|
+
return boolGoToPy(op.IsCarbon)
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3372
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3373
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3374
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
3378
|
+
//
|
|
3379
|
+
//export whatsapp_Attachment_CTor
|
|
3380
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
3381
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
3382
|
+
}
|
|
3383
|
+
|
|
3384
|
+
//export whatsapp_Attachment_MIME_Get
|
|
3385
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
3386
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3387
|
+
return C.CString(op.MIME)
|
|
3388
|
+
}
|
|
3389
|
+
|
|
3390
|
+
//export whatsapp_Attachment_MIME_Set
|
|
3391
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
3392
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3393
|
+
op.MIME = C.GoString(val)
|
|
3394
|
+
}
|
|
3395
|
+
|
|
3396
|
+
//export whatsapp_Attachment_Filename_Get
|
|
3397
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
3398
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3399
|
+
return C.CString(op.Filename)
|
|
3400
|
+
}
|
|
3401
|
+
|
|
3402
|
+
//export whatsapp_Attachment_Filename_Set
|
|
3403
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
3404
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3405
|
+
op.Filename = C.GoString(val)
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
//export whatsapp_Attachment_Caption_Get
|
|
3409
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
3410
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3411
|
+
return C.CString(op.Caption)
|
|
3412
|
+
}
|
|
3413
|
+
|
|
3414
|
+
//export whatsapp_Attachment_Caption_Set
|
|
3415
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
3416
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3417
|
+
op.Caption = C.GoString(val)
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
//export whatsapp_Attachment_Data_Get
|
|
3421
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
3422
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3423
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
3424
|
+
}
|
|
3425
|
+
|
|
3426
|
+
//export whatsapp_Attachment_Data_Set
|
|
3427
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
3428
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
3429
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
//export whatsapp_Attachment_GetSpec
|
|
3433
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
3434
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3435
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
3436
|
+
if __err != nil {
|
|
3437
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3438
|
+
}
|
|
3439
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3440
|
+
|
|
3441
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3442
|
+
if __err != nil {
|
|
3443
|
+
estr := C.CString(__err.Error())
|
|
3444
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3445
|
+
C.free(unsafe.Pointer(estr))
|
|
3446
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3447
|
+
}
|
|
3448
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
3452
|
+
//
|
|
3453
|
+
//export whatsapp_Avatar_CTor
|
|
3454
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3455
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3456
|
+
}
|
|
3457
|
+
|
|
3458
|
+
//export whatsapp_Avatar_ID_Get
|
|
3459
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3460
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3461
|
+
return C.CString(op.ID)
|
|
3220
3462
|
}
|
|
3221
3463
|
|
|
3222
|
-
//
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3464
|
+
//export whatsapp_Avatar_ID_Set
|
|
3465
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3466
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3467
|
+
op.ID = C.GoString(val)
|
|
3227
3468
|
}
|
|
3228
3469
|
|
|
3229
|
-
//export
|
|
3230
|
-
func
|
|
3231
|
-
op :=
|
|
3232
|
-
return C.CString(op.
|
|
3470
|
+
//export whatsapp_Avatar_URL_Get
|
|
3471
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3472
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3473
|
+
return C.CString(op.URL)
|
|
3233
3474
|
}
|
|
3234
3475
|
|
|
3235
|
-
//export
|
|
3236
|
-
func
|
|
3237
|
-
op :=
|
|
3238
|
-
op.
|
|
3476
|
+
//export whatsapp_Avatar_URL_Set
|
|
3477
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3478
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3479
|
+
op.URL = C.GoString(val)
|
|
3239
3480
|
}
|
|
3240
3481
|
|
|
3241
|
-
// --- wrapping struct: whatsapp.
|
|
3482
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3242
3483
|
//
|
|
3243
|
-
//export
|
|
3244
|
-
func
|
|
3245
|
-
return CGoHandle(
|
|
3484
|
+
//export whatsapp_Connect_CTor
|
|
3485
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3486
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3246
3487
|
}
|
|
3247
3488
|
|
|
3248
|
-
//export
|
|
3249
|
-
func
|
|
3250
|
-
op :=
|
|
3251
|
-
return C.
|
|
3489
|
+
//export whatsapp_Connect_JID_Get
|
|
3490
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3491
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3492
|
+
return C.CString(op.JID)
|
|
3252
3493
|
}
|
|
3253
3494
|
|
|
3254
|
-
//export
|
|
3255
|
-
func
|
|
3256
|
-
op :=
|
|
3257
|
-
op.
|
|
3495
|
+
//export whatsapp_Connect_JID_Set
|
|
3496
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3497
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3498
|
+
op.JID = C.GoString(val)
|
|
3258
3499
|
}
|
|
3259
3500
|
|
|
3260
|
-
//export
|
|
3261
|
-
func
|
|
3262
|
-
op :=
|
|
3263
|
-
return
|
|
3501
|
+
//export whatsapp_Connect_Error_Get
|
|
3502
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3503
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3504
|
+
return C.CString(op.Error)
|
|
3264
3505
|
}
|
|
3265
3506
|
|
|
3266
|
-
//export
|
|
3267
|
-
func
|
|
3268
|
-
op :=
|
|
3269
|
-
op.
|
|
3507
|
+
//export whatsapp_Connect_Error_Set
|
|
3508
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3509
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3510
|
+
op.Error = C.GoString(val)
|
|
3270
3511
|
}
|
|
3271
3512
|
|
|
3272
|
-
//
|
|
3273
|
-
|
|
3274
|
-
|
|
3513
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3514
|
+
//
|
|
3515
|
+
//export whatsapp_Group_CTor
|
|
3516
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3517
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
//export whatsapp_Group_JID_Get
|
|
3521
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3522
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3275
3523
|
return C.CString(op.JID)
|
|
3276
3524
|
}
|
|
3277
3525
|
|
|
3278
|
-
//export
|
|
3279
|
-
func
|
|
3280
|
-
op :=
|
|
3526
|
+
//export whatsapp_Group_JID_Set
|
|
3527
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3528
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3281
3529
|
op.JID = C.GoString(val)
|
|
3282
3530
|
}
|
|
3283
3531
|
|
|
3284
|
-
//export
|
|
3285
|
-
func
|
|
3286
|
-
op :=
|
|
3287
|
-
return C.CString(op.
|
|
3532
|
+
//export whatsapp_Group_Name_Get
|
|
3533
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3534
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3535
|
+
return C.CString(op.Name)
|
|
3288
3536
|
}
|
|
3289
3537
|
|
|
3290
|
-
//export
|
|
3291
|
-
func
|
|
3292
|
-
op :=
|
|
3293
|
-
op.
|
|
3538
|
+
//export whatsapp_Group_Name_Set
|
|
3539
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3540
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3541
|
+
op.Name = C.GoString(val)
|
|
3294
3542
|
}
|
|
3295
3543
|
|
|
3296
|
-
//export
|
|
3297
|
-
func
|
|
3298
|
-
op :=
|
|
3299
|
-
return
|
|
3544
|
+
//export whatsapp_Group_Subject_Get
|
|
3545
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3546
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3547
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3300
3548
|
}
|
|
3301
3549
|
|
|
3302
|
-
//export
|
|
3303
|
-
func
|
|
3304
|
-
op :=
|
|
3305
|
-
op.
|
|
3550
|
+
//export whatsapp_Group_Subject_Set
|
|
3551
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3552
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3553
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3306
3554
|
}
|
|
3307
3555
|
|
|
3308
|
-
//export
|
|
3309
|
-
func
|
|
3310
|
-
op :=
|
|
3311
|
-
return
|
|
3556
|
+
//export whatsapp_Group_Nickname_Get
|
|
3557
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3558
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3559
|
+
return C.CString(op.Nickname)
|
|
3312
3560
|
}
|
|
3313
3561
|
|
|
3314
|
-
//export
|
|
3315
|
-
func
|
|
3316
|
-
op :=
|
|
3317
|
-
op.
|
|
3562
|
+
//export whatsapp_Group_Nickname_Set
|
|
3563
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3564
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3565
|
+
op.Nickname = C.GoString(val)
|
|
3318
3566
|
}
|
|
3319
3567
|
|
|
3320
|
-
//
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
3568
|
+
//export whatsapp_Group_Participants_Get
|
|
3569
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3570
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3571
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3325
3572
|
}
|
|
3326
3573
|
|
|
3327
|
-
//export
|
|
3328
|
-
func
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
return errorGoToPy(nil)
|
|
3333
|
-
}
|
|
3334
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
3574
|
+
//export whatsapp_Group_Participants_Set
|
|
3575
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3576
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3577
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3578
|
+
}
|
|
3335
3579
|
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
return estr
|
|
3341
|
-
}
|
|
3342
|
-
return C.CString("")
|
|
3580
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3581
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3582
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3583
|
+
return C.CString(op.InviteCode)
|
|
3343
3584
|
}
|
|
3344
3585
|
|
|
3345
|
-
//export
|
|
3346
|
-
func
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
return errorGoToPy(nil)
|
|
3351
|
-
}
|
|
3352
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
3586
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3587
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3588
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3589
|
+
op.InviteCode = C.GoString(val)
|
|
3590
|
+
}
|
|
3353
3591
|
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
}
|
|
3360
|
-
return C.CString("")
|
|
3592
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3593
|
+
//
|
|
3594
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3595
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3596
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3361
3597
|
}
|
|
3362
3598
|
|
|
3363
|
-
//export
|
|
3364
|
-
func
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
return errorGoToPy(nil)
|
|
3369
|
-
}
|
|
3370
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
3599
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3600
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3601
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3602
|
+
return C.CString(op.ID)
|
|
3603
|
+
}
|
|
3371
3604
|
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
return estr
|
|
3377
|
-
}
|
|
3378
|
-
return C.CString("")
|
|
3605
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3606
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3607
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3608
|
+
op.ID = C.GoString(val)
|
|
3379
3609
|
}
|
|
3380
3610
|
|
|
3381
|
-
//export
|
|
3382
|
-
func
|
|
3611
|
+
//export whatsapp_LinkedDevice_JID
|
|
3612
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3383
3613
|
_saved_thread := C.PyEval_SaveThread()
|
|
3384
|
-
|
|
3614
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3615
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3385
3616
|
if __err != nil {
|
|
3386
|
-
return
|
|
3617
|
+
return handleFromPtr_types_JID(nil)
|
|
3387
3618
|
}
|
|
3388
|
-
cret
|
|
3619
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3389
3620
|
|
|
3390
|
-
|
|
3391
|
-
if __err != nil {
|
|
3392
|
-
estr := C.CString(__err.Error())
|
|
3393
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3394
|
-
C.free(unsafe.Pointer(estr))
|
|
3395
|
-
return C.CString("")
|
|
3396
|
-
}
|
|
3397
|
-
return C.CString(cret)
|
|
3621
|
+
return handleFromPtr_types_JID(&cret)
|
|
3398
3622
|
}
|
|
3399
3623
|
|
|
3400
|
-
//
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3624
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
3625
|
+
//
|
|
3626
|
+
//export whatsapp_Presence_CTor
|
|
3627
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
3628
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
3629
|
+
}
|
|
3630
|
+
|
|
3631
|
+
//export whatsapp_Presence_JID_Get
|
|
3632
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
3633
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3634
|
+
return C.CString(op.JID)
|
|
3635
|
+
}
|
|
3408
3636
|
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
return estr
|
|
3414
|
-
}
|
|
3415
|
-
return C.CString("")
|
|
3637
|
+
//export whatsapp_Presence_JID_Set
|
|
3638
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
3639
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3640
|
+
op.JID = C.GoString(val)
|
|
3416
3641
|
}
|
|
3417
3642
|
|
|
3418
|
-
//export
|
|
3419
|
-
func
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
if __err != nil {
|
|
3424
|
-
return C.CString("")
|
|
3425
|
-
}
|
|
3426
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
3643
|
+
//export whatsapp_Presence_Kind_Get
|
|
3644
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
3645
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3646
|
+
return C.longlong(int(op.Kind))
|
|
3647
|
+
}
|
|
3427
3648
|
|
|
3649
|
+
//export whatsapp_Presence_Kind_Set
|
|
3650
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3651
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3652
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
3428
3653
|
}
|
|
3429
3654
|
|
|
3430
|
-
//export
|
|
3431
|
-
func
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
return errorGoToPy(nil)
|
|
3436
|
-
}
|
|
3437
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3655
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
3656
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
3657
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3658
|
+
return C.longlong(op.LastSeen)
|
|
3659
|
+
}
|
|
3438
3660
|
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
return estr
|
|
3444
|
-
}
|
|
3445
|
-
return C.CString("")
|
|
3661
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
3662
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
3663
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
3664
|
+
op.LastSeen = int64(val)
|
|
3446
3665
|
}
|
|
3447
3666
|
|
|
3448
|
-
//
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
}
|
|
3455
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3667
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
3668
|
+
//
|
|
3669
|
+
//export whatsapp_Contact_CTor
|
|
3670
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
3671
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
3672
|
+
}
|
|
3456
3673
|
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
return estr
|
|
3462
|
-
}
|
|
3463
|
-
return C.CString("")
|
|
3674
|
+
//export whatsapp_Contact_JID_Get
|
|
3675
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
3676
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3677
|
+
return C.CString(op.JID)
|
|
3464
3678
|
}
|
|
3465
3679
|
|
|
3466
|
-
//export
|
|
3467
|
-
func
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
return errorGoToPy(nil)
|
|
3472
|
-
}
|
|
3473
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3680
|
+
//export whatsapp_Contact_JID_Set
|
|
3681
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
3682
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3683
|
+
op.JID = C.GoString(val)
|
|
3684
|
+
}
|
|
3474
3685
|
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
return estr
|
|
3480
|
-
}
|
|
3481
|
-
return C.CString("")
|
|
3686
|
+
//export whatsapp_Contact_Name_Get
|
|
3687
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
3688
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3689
|
+
return C.CString(op.Name)
|
|
3482
3690
|
}
|
|
3483
3691
|
|
|
3484
|
-
//export
|
|
3485
|
-
func
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3490
|
-
}
|
|
3491
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
3692
|
+
//export whatsapp_Contact_Name_Set
|
|
3693
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
3694
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
3695
|
+
op.Name = C.GoString(val)
|
|
3696
|
+
}
|
|
3492
3697
|
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3499
|
-
}
|
|
3500
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
3698
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
3699
|
+
//
|
|
3700
|
+
//export whatsapp_Location_CTor
|
|
3701
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
3702
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3501
3703
|
}
|
|
3502
3704
|
|
|
3503
|
-
//export
|
|
3504
|
-
func
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3509
|
-
}
|
|
3510
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
3705
|
+
//export whatsapp_Location_Latitude_Get
|
|
3706
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
3707
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3708
|
+
return C.double(op.Latitude)
|
|
3709
|
+
}
|
|
3511
3710
|
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
C.free(unsafe.Pointer(estr))
|
|
3517
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3518
|
-
}
|
|
3519
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
3711
|
+
//export whatsapp_Location_Latitude_Set
|
|
3712
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
3713
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3714
|
+
op.Latitude = float64(val)
|
|
3520
3715
|
}
|
|
3521
3716
|
|
|
3522
|
-
//export
|
|
3523
|
-
func
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3528
|
-
}
|
|
3529
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
3717
|
+
//export whatsapp_Location_Longitude_Get
|
|
3718
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
3719
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3720
|
+
return C.double(op.Longitude)
|
|
3721
|
+
}
|
|
3530
3722
|
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
C.free(unsafe.Pointer(estr))
|
|
3536
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
3537
|
-
}
|
|
3538
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
3723
|
+
//export whatsapp_Location_Longitude_Set
|
|
3724
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
3725
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3726
|
+
op.Longitude = float64(val)
|
|
3539
3727
|
}
|
|
3540
3728
|
|
|
3541
|
-
//export
|
|
3542
|
-
func
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
return errorGoToPy(nil)
|
|
3547
|
-
}
|
|
3548
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
3729
|
+
//export whatsapp_Location_Accuracy_Get
|
|
3730
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
3731
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3732
|
+
return C.longlong(op.Accuracy)
|
|
3733
|
+
}
|
|
3549
3734
|
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
return estr
|
|
3555
|
-
}
|
|
3556
|
-
return C.CString("")
|
|
3735
|
+
//export whatsapp_Location_Accuracy_Set
|
|
3736
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
3737
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3738
|
+
op.Accuracy = int(val)
|
|
3557
3739
|
}
|
|
3558
3740
|
|
|
3559
|
-
//export
|
|
3560
|
-
func
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3565
|
-
}
|
|
3566
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
3741
|
+
//export whatsapp_Location_IsLive_Get
|
|
3742
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
3743
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3744
|
+
return boolGoToPy(op.IsLive)
|
|
3745
|
+
}
|
|
3567
3746
|
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
C.free(unsafe.Pointer(estr))
|
|
3573
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3574
|
-
}
|
|
3575
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
3747
|
+
//export whatsapp_Location_IsLive_Set
|
|
3748
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
3749
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3750
|
+
op.IsLive = boolPyToGo(val)
|
|
3576
3751
|
}
|
|
3577
3752
|
|
|
3578
|
-
//export
|
|
3579
|
-
func
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
return C.CString("")
|
|
3584
|
-
}
|
|
3585
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
3753
|
+
//export whatsapp_Location_Name_Get
|
|
3754
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
3755
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3756
|
+
return C.CString(op.Name)
|
|
3757
|
+
}
|
|
3586
3758
|
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3759
|
+
//export whatsapp_Location_Name_Set
|
|
3760
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
3761
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3762
|
+
op.Name = C.GoString(val)
|
|
3763
|
+
}
|
|
3764
|
+
|
|
3765
|
+
//export whatsapp_Location_Address_Get
|
|
3766
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
3767
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3768
|
+
return C.CString(op.Address)
|
|
3595
3769
|
}
|
|
3596
3770
|
|
|
3597
|
-
//export
|
|
3598
|
-
func
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
if __err != nil {
|
|
3602
|
-
return errorGoToPy(nil)
|
|
3603
|
-
}
|
|
3604
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3605
|
-
|
|
3606
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3607
|
-
if __err != nil {
|
|
3608
|
-
estr := C.CString(__err.Error())
|
|
3609
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3610
|
-
return estr
|
|
3611
|
-
}
|
|
3612
|
-
return C.CString("")
|
|
3771
|
+
//export whatsapp_Location_Address_Set
|
|
3772
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
3773
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3774
|
+
op.Address = C.GoString(val)
|
|
3613
3775
|
}
|
|
3614
3776
|
|
|
3615
|
-
//export
|
|
3616
|
-
func
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
return errorGoToPy(nil)
|
|
3621
|
-
}
|
|
3622
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3777
|
+
//export whatsapp_Location_URL_Get
|
|
3778
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
3779
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3780
|
+
return C.CString(op.URL)
|
|
3781
|
+
}
|
|
3623
3782
|
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
return estr
|
|
3629
|
-
}
|
|
3630
|
-
return C.CString("")
|
|
3783
|
+
//export whatsapp_Location_URL_Set
|
|
3784
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
3785
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
3786
|
+
op.URL = C.GoString(val)
|
|
3631
3787
|
}
|
|
3632
3788
|
|
|
3633
|
-
//
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
}
|
|
3640
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3789
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
3790
|
+
//
|
|
3791
|
+
//export whatsapp_LoggedOut_CTor
|
|
3792
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
3793
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
3794
|
+
}
|
|
3641
3795
|
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
C.free(unsafe.Pointer(estr))
|
|
3647
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3648
|
-
}
|
|
3649
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3796
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
3797
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
3798
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3799
|
+
return C.CString(op.Reason)
|
|
3650
3800
|
}
|
|
3651
3801
|
|
|
3652
|
-
//export
|
|
3653
|
-
func
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3658
|
-
}
|
|
3659
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3802
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
3803
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
3804
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
3805
|
+
op.Reason = C.GoString(val)
|
|
3806
|
+
}
|
|
3660
3807
|
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
3667
|
-
}
|
|
3668
|
-
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3808
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
3809
|
+
//
|
|
3810
|
+
//export whatsapp_Poll_CTor
|
|
3811
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
3812
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3669
3813
|
}
|
|
3670
3814
|
|
|
3671
|
-
//export
|
|
3672
|
-
func
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
return errorGoToPy(nil)
|
|
3677
|
-
}
|
|
3678
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3815
|
+
//export whatsapp_Poll_Title_Get
|
|
3816
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
3817
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3818
|
+
return C.CString(op.Title)
|
|
3819
|
+
}
|
|
3679
3820
|
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
return estr
|
|
3685
|
-
}
|
|
3686
|
-
return C.CString("")
|
|
3821
|
+
//export whatsapp_Poll_Title_Set
|
|
3822
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
3823
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3824
|
+
op.Title = C.GoString(val)
|
|
3687
3825
|
}
|
|
3688
3826
|
|
|
3689
|
-
//export
|
|
3690
|
-
func
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3694
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3695
|
-
if __err != nil {
|
|
3696
|
-
return
|
|
3697
|
-
}
|
|
3698
|
-
if boolPyToGo(goRun) {
|
|
3699
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3700
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3701
|
-
return
|
|
3702
|
-
}
|
|
3703
|
-
_gstate := C.PyGILState_Ensure()
|
|
3704
|
-
_fcargs := C.PyTuple_New(2)
|
|
3705
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3706
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3707
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3708
|
-
C.gopy_decref(_fcargs)
|
|
3709
|
-
C.gopy_err_handle()
|
|
3710
|
-
C.PyGILState_Release(_gstate)
|
|
3711
|
-
})
|
|
3712
|
-
} else {
|
|
3713
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3714
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3715
|
-
return
|
|
3716
|
-
}
|
|
3717
|
-
_gstate := C.PyGILState_Ensure()
|
|
3718
|
-
_fcargs := C.PyTuple_New(2)
|
|
3719
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3720
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3721
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3722
|
-
C.gopy_decref(_fcargs)
|
|
3723
|
-
C.gopy_err_handle()
|
|
3724
|
-
C.PyGILState_Release(_gstate)
|
|
3725
|
-
})
|
|
3726
|
-
}
|
|
3827
|
+
//export whatsapp_Poll_Options_Get
|
|
3828
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
3829
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3830
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
3727
3831
|
}
|
|
3728
3832
|
|
|
3729
|
-
//
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3833
|
+
//export whatsapp_Poll_Options_Set
|
|
3834
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
3835
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
3836
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
3734
3837
|
}
|
|
3735
3838
|
|
|
3736
|
-
//
|
|
3737
|
-
|
|
3738
|
-
|
|
3739
|
-
|
|
3839
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
3840
|
+
//
|
|
3841
|
+
//export whatsapp_Preview_CTor
|
|
3842
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
3843
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
3740
3844
|
}
|
|
3741
3845
|
|
|
3742
|
-
//export
|
|
3743
|
-
func
|
|
3744
|
-
op :=
|
|
3745
|
-
op.
|
|
3846
|
+
//export whatsapp_Preview_Kind_Get
|
|
3847
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
3848
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3849
|
+
return C.longlong(int(op.Kind))
|
|
3746
3850
|
}
|
|
3747
3851
|
|
|
3748
|
-
//export
|
|
3749
|
-
func
|
|
3750
|
-
op :=
|
|
3751
|
-
|
|
3852
|
+
//export whatsapp_Preview_Kind_Set
|
|
3853
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3854
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3855
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
3752
3856
|
}
|
|
3753
3857
|
|
|
3754
|
-
//export
|
|
3755
|
-
func
|
|
3756
|
-
op :=
|
|
3757
|
-
op.
|
|
3858
|
+
//export whatsapp_Preview_URL_Get
|
|
3859
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
3860
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3861
|
+
return C.CString(op.URL)
|
|
3758
3862
|
}
|
|
3759
3863
|
|
|
3760
|
-
//export
|
|
3761
|
-
func
|
|
3762
|
-
op :=
|
|
3763
|
-
|
|
3864
|
+
//export whatsapp_Preview_URL_Set
|
|
3865
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
3866
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3867
|
+
op.URL = C.GoString(val)
|
|
3764
3868
|
}
|
|
3765
3869
|
|
|
3766
|
-
//export
|
|
3767
|
-
func
|
|
3768
|
-
op :=
|
|
3769
|
-
op.
|
|
3870
|
+
//export whatsapp_Preview_Title_Get
|
|
3871
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
3872
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3873
|
+
return C.CString(op.Title)
|
|
3770
3874
|
}
|
|
3771
3875
|
|
|
3772
|
-
//
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3876
|
+
//export whatsapp_Preview_Title_Set
|
|
3877
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
3878
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3879
|
+
op.Title = C.GoString(val)
|
|
3777
3880
|
}
|
|
3778
3881
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3782
|
-
return C.CString(op.
|
|
3882
|
+
//export whatsapp_Preview_Description_Get
|
|
3883
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
3884
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3885
|
+
return C.CString(op.Description)
|
|
3783
3886
|
}
|
|
3784
3887
|
|
|
3785
|
-
//export
|
|
3786
|
-
func
|
|
3787
|
-
op :=
|
|
3788
|
-
op.
|
|
3888
|
+
//export whatsapp_Preview_Description_Set
|
|
3889
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
3890
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3891
|
+
op.Description = C.GoString(val)
|
|
3789
3892
|
}
|
|
3790
3893
|
|
|
3791
|
-
//export
|
|
3792
|
-
func
|
|
3793
|
-
op :=
|
|
3794
|
-
return
|
|
3894
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
3895
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
3896
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3897
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
3795
3898
|
}
|
|
3796
3899
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3900
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
3901
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
3902
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
3903
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
3801
3904
|
}
|
|
3802
3905
|
|
|
3803
3906
|
// ---- Slices ---
|
|
@@ -3815,3 +3918,11 @@ func whatsapp_NewGateway() CGoHandle {
|
|
|
3815
3918
|
}
|
|
3816
3919
|
|
|
3817
3920
|
// ---- Functions ---
|
|
3921
|
+
|
|
3922
|
+
//export whatsapp_IsAnonymousJID
|
|
3923
|
+
func whatsapp_IsAnonymousJID(id *C.char) C.char {
|
|
3924
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3925
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3926
|
+
return boolGoToPy(whatsapp.IsAnonymousJID(C.GoString(id)))
|
|
3927
|
+
|
|
3928
|
+
}
|