slidge-whatsapp 0.2.6__cp313-cp313-manylinux_2_36_aarch64.whl → 0.3.0__cp313-cp313-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-313-aarch64-linux-gnu.h +180 -163
- slidge_whatsapp/generated/_whatsapp.cpython-313-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +145 -131
- slidge_whatsapp/generated/whatsapp.c +1669 -1397
- slidge_whatsapp/generated/whatsapp.go +1209 -1098
- slidge_whatsapp/generated/whatsapp.py +1175 -1050
- slidge_whatsapp/generated/whatsapp_go.h +180 -163
- 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.13.
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.13.
|
|
11
|
+
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.13.7-linux-aarch64-gnu/include/python3.13" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.13.7-linux-aarch64-gnu/lib" "-lpython3.13" -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")
|
|
@@ -2158,964 +2182,1155 @@ func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
|
2158
2182
|
op.LastSeen = int64(val)
|
|
2159
2183
|
}
|
|
2160
2184
|
|
|
2161
|
-
// --- wrapping struct: whatsapp.
|
|
2185
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2162
2186
|
//
|
|
2163
|
-
//export
|
|
2164
|
-
func
|
|
2165
|
-
return CGoHandle(
|
|
2187
|
+
//export whatsapp_Preview_CTor
|
|
2188
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2189
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2166
2190
|
}
|
|
2167
2191
|
|
|
2168
|
-
//export
|
|
2169
|
-
func
|
|
2170
|
-
op :=
|
|
2192
|
+
//export whatsapp_Preview_Kind_Get
|
|
2193
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2171
2195
|
return C.longlong(int(op.Kind))
|
|
2172
2196
|
}
|
|
2173
2197
|
|
|
2174
|
-
//export
|
|
2175
|
-
func
|
|
2176
|
-
op :=
|
|
2177
|
-
op.Kind = whatsapp.
|
|
2198
|
+
//export whatsapp_Preview_Kind_Set
|
|
2199
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2201
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2178
2202
|
}
|
|
2179
2203
|
|
|
2180
|
-
//export
|
|
2181
|
-
func
|
|
2182
|
-
op :=
|
|
2183
|
-
return
|
|
2204
|
+
//export whatsapp_Preview_URL_Get
|
|
2205
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2206
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2207
|
+
return C.CString(op.URL)
|
|
2184
2208
|
}
|
|
2185
2209
|
|
|
2186
|
-
//export
|
|
2187
|
-
func
|
|
2188
|
-
op :=
|
|
2189
|
-
op.
|
|
2210
|
+
//export whatsapp_Preview_URL_Set
|
|
2211
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2212
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2213
|
+
op.URL = C.GoString(val)
|
|
2190
2214
|
}
|
|
2191
2215
|
|
|
2192
|
-
//export
|
|
2193
|
-
func
|
|
2194
|
-
op :=
|
|
2195
|
-
return C.CString(op.
|
|
2216
|
+
//export whatsapp_Preview_Title_Get
|
|
2217
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2218
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2219
|
+
return C.CString(op.Title)
|
|
2196
2220
|
}
|
|
2197
2221
|
|
|
2198
|
-
//export
|
|
2199
|
-
func
|
|
2200
|
-
op :=
|
|
2201
|
-
op.
|
|
2222
|
+
//export whatsapp_Preview_Title_Set
|
|
2223
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2224
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2225
|
+
op.Title = C.GoString(val)
|
|
2202
2226
|
}
|
|
2203
2227
|
|
|
2204
|
-
//export
|
|
2205
|
-
func
|
|
2206
|
-
op :=
|
|
2207
|
-
return C.CString(op.
|
|
2228
|
+
//export whatsapp_Preview_Description_Get
|
|
2229
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2230
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2231
|
+
return C.CString(op.Description)
|
|
2208
2232
|
}
|
|
2209
2233
|
|
|
2210
|
-
//export
|
|
2211
|
-
func
|
|
2212
|
-
op :=
|
|
2213
|
-
op.
|
|
2234
|
+
//export whatsapp_Preview_Description_Set
|
|
2235
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2236
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2237
|
+
op.Description = C.GoString(val)
|
|
2214
2238
|
}
|
|
2215
2239
|
|
|
2216
|
-
//export
|
|
2217
|
-
func
|
|
2218
|
-
op :=
|
|
2219
|
-
return
|
|
2240
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2241
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2242
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2243
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2220
2244
|
}
|
|
2221
2245
|
|
|
2222
|
-
//export
|
|
2223
|
-
func
|
|
2224
|
-
op :=
|
|
2225
|
-
op.
|
|
2246
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2247
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2248
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2249
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2226
2250
|
}
|
|
2227
2251
|
|
|
2228
|
-
//
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2252
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2253
|
+
//
|
|
2254
|
+
//export whatsapp_Attachment_CTor
|
|
2255
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2256
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2232
2257
|
}
|
|
2233
2258
|
|
|
2234
|
-
//export
|
|
2235
|
-
func
|
|
2236
|
-
op :=
|
|
2237
|
-
op.
|
|
2259
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2260
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2262
|
+
return C.CString(op.MIME)
|
|
2238
2263
|
}
|
|
2239
2264
|
|
|
2240
|
-
//
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2265
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2266
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2268
|
+
op.MIME = C.GoString(val)
|
|
2245
2269
|
}
|
|
2246
2270
|
|
|
2247
|
-
//export
|
|
2248
|
-
func
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
return errorGoToPy(nil)
|
|
2253
|
-
}
|
|
2254
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2271
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2272
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2273
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2274
|
+
return C.CString(op.Filename)
|
|
2275
|
+
}
|
|
2255
2276
|
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
return estr
|
|
2261
|
-
}
|
|
2262
|
-
return C.CString("")
|
|
2277
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2278
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2279
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2280
|
+
op.Filename = C.GoString(val)
|
|
2263
2281
|
}
|
|
2264
2282
|
|
|
2265
|
-
//export
|
|
2266
|
-
func
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
return errorGoToPy(nil)
|
|
2271
|
-
}
|
|
2272
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2283
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2284
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2285
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2286
|
+
return C.CString(op.Caption)
|
|
2287
|
+
}
|
|
2273
2288
|
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
return estr
|
|
2279
|
-
}
|
|
2280
|
-
return C.CString("")
|
|
2289
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2290
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2291
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2292
|
+
op.Caption = C.GoString(val)
|
|
2281
2293
|
}
|
|
2282
2294
|
|
|
2283
|
-
//export
|
|
2284
|
-
func
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
return errorGoToPy(nil)
|
|
2289
|
-
}
|
|
2290
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2295
|
+
//export whatsapp_Attachment_Data_Get
|
|
2296
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2297
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2298
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2299
|
+
}
|
|
2291
2300
|
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
return estr
|
|
2297
|
-
}
|
|
2298
|
-
return C.CString("")
|
|
2301
|
+
//export whatsapp_Attachment_Data_Set
|
|
2302
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2303
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2304
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2299
2305
|
}
|
|
2300
2306
|
|
|
2301
|
-
//export
|
|
2302
|
-
func
|
|
2307
|
+
//export whatsapp_Attachment_GetSpec
|
|
2308
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2303
2309
|
_saved_thread := C.PyEval_SaveThread()
|
|
2304
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.
|
|
2310
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2305
2311
|
if __err != nil {
|
|
2306
|
-
return
|
|
2312
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2307
2313
|
}
|
|
2308
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2314
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2309
2315
|
|
|
2310
2316
|
C.PyEval_RestoreThread(_saved_thread)
|
|
2311
2317
|
if __err != nil {
|
|
2312
2318
|
estr := C.CString(__err.Error())
|
|
2313
2319
|
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2314
2320
|
C.free(unsafe.Pointer(estr))
|
|
2315
|
-
return
|
|
2321
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2316
2322
|
}
|
|
2317
|
-
return
|
|
2323
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2318
2324
|
}
|
|
2319
2325
|
|
|
2320
|
-
//
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
}
|
|
2327
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2326
|
+
// --- wrapping struct: whatsapp.EventPayload ---
|
|
2327
|
+
//
|
|
2328
|
+
//export whatsapp_EventPayload_CTor
|
|
2329
|
+
func whatsapp_EventPayload_CTor() CGoHandle {
|
|
2330
|
+
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2331
|
+
}
|
|
2328
2332
|
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
return estr
|
|
2334
|
-
}
|
|
2335
|
-
return C.CString("")
|
|
2333
|
+
//export whatsapp_EventPayload_QRCode_Get
|
|
2334
|
+
func whatsapp_EventPayload_QRCode_Get(handle CGoHandle) *C.char {
|
|
2335
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2336
|
+
return C.CString(op.QRCode)
|
|
2336
2337
|
}
|
|
2337
2338
|
|
|
2338
|
-
//export
|
|
2339
|
-
func
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
if __err != nil {
|
|
2344
|
-
return C.CString("")
|
|
2345
|
-
}
|
|
2346
|
-
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2339
|
+
//export whatsapp_EventPayload_QRCode_Set
|
|
2340
|
+
func whatsapp_EventPayload_QRCode_Set(handle CGoHandle, val *C.char) {
|
|
2341
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2342
|
+
op.QRCode = C.GoString(val)
|
|
2343
|
+
}
|
|
2347
2344
|
|
|
2345
|
+
//export whatsapp_EventPayload_PairDeviceID_Get
|
|
2346
|
+
func whatsapp_EventPayload_PairDeviceID_Get(handle CGoHandle) *C.char {
|
|
2347
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2348
|
+
return C.CString(op.PairDeviceID)
|
|
2348
2349
|
}
|
|
2349
2350
|
|
|
2350
|
-
//export
|
|
2351
|
-
func
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
return errorGoToPy(nil)
|
|
2356
|
-
}
|
|
2357
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
2351
|
+
//export whatsapp_EventPayload_PairDeviceID_Set
|
|
2352
|
+
func whatsapp_EventPayload_PairDeviceID_Set(handle CGoHandle, val *C.char) {
|
|
2353
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2354
|
+
op.PairDeviceID = C.GoString(val)
|
|
2355
|
+
}
|
|
2358
2356
|
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
return estr
|
|
2364
|
-
}
|
|
2365
|
-
return C.CString("")
|
|
2357
|
+
//export whatsapp_EventPayload_Connect_Get
|
|
2358
|
+
func whatsapp_EventPayload_Connect_Get(handle CGoHandle) CGoHandle {
|
|
2359
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2360
|
+
return handleFromPtr_whatsapp_Connect(&op.Connect)
|
|
2366
2361
|
}
|
|
2367
2362
|
|
|
2368
|
-
//export
|
|
2369
|
-
func
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
return errorGoToPy(nil)
|
|
2374
|
-
}
|
|
2375
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
2363
|
+
//export whatsapp_EventPayload_Connect_Set
|
|
2364
|
+
func whatsapp_EventPayload_Connect_Set(handle CGoHandle, val CGoHandle) {
|
|
2365
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2366
|
+
op.Connect = *ptrFromHandle_whatsapp_Connect(val)
|
|
2367
|
+
}
|
|
2376
2368
|
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
return estr
|
|
2382
|
-
}
|
|
2383
|
-
return C.CString("")
|
|
2369
|
+
//export whatsapp_EventPayload_LoggedOut_Get
|
|
2370
|
+
func whatsapp_EventPayload_LoggedOut_Get(handle CGoHandle) CGoHandle {
|
|
2371
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2372
|
+
return handleFromPtr_whatsapp_LoggedOut(&op.LoggedOut)
|
|
2384
2373
|
}
|
|
2385
2374
|
|
|
2386
|
-
//export
|
|
2387
|
-
func
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
return errorGoToPy(nil)
|
|
2392
|
-
}
|
|
2393
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
2375
|
+
//export whatsapp_EventPayload_LoggedOut_Set
|
|
2376
|
+
func whatsapp_EventPayload_LoggedOut_Set(handle CGoHandle, val CGoHandle) {
|
|
2377
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2378
|
+
op.LoggedOut = *ptrFromHandle_whatsapp_LoggedOut(val)
|
|
2379
|
+
}
|
|
2394
2380
|
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
return estr
|
|
2400
|
-
}
|
|
2401
|
-
return C.CString("")
|
|
2381
|
+
//export whatsapp_EventPayload_Contact_Get
|
|
2382
|
+
func whatsapp_EventPayload_Contact_Get(handle CGoHandle) CGoHandle {
|
|
2383
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2384
|
+
return handleFromPtr_whatsapp_Contact(&op.Contact)
|
|
2402
2385
|
}
|
|
2403
2386
|
|
|
2404
|
-
//export
|
|
2405
|
-
func
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2410
|
-
}
|
|
2411
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2387
|
+
//export whatsapp_EventPayload_Contact_Set
|
|
2388
|
+
func whatsapp_EventPayload_Contact_Set(handle CGoHandle, val CGoHandle) {
|
|
2389
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2390
|
+
op.Contact = *ptrFromHandle_whatsapp_Contact(val)
|
|
2391
|
+
}
|
|
2412
2392
|
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
C.free(unsafe.Pointer(estr))
|
|
2418
|
-
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2419
|
-
}
|
|
2420
|
-
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2393
|
+
//export whatsapp_EventPayload_Presence_Get
|
|
2394
|
+
func whatsapp_EventPayload_Presence_Get(handle CGoHandle) CGoHandle {
|
|
2395
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2396
|
+
return handleFromPtr_whatsapp_Presence(&op.Presence)
|
|
2421
2397
|
}
|
|
2422
2398
|
|
|
2423
|
-
//export
|
|
2424
|
-
func
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2429
|
-
}
|
|
2430
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2399
|
+
//export whatsapp_EventPayload_Presence_Set
|
|
2400
|
+
func whatsapp_EventPayload_Presence_Set(handle CGoHandle, val CGoHandle) {
|
|
2401
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2402
|
+
op.Presence = *ptrFromHandle_whatsapp_Presence(val)
|
|
2403
|
+
}
|
|
2431
2404
|
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
C.free(unsafe.Pointer(estr))
|
|
2437
|
-
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
2438
|
-
}
|
|
2439
|
-
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2405
|
+
//export whatsapp_EventPayload_Message_Get
|
|
2406
|
+
func whatsapp_EventPayload_Message_Get(handle CGoHandle) CGoHandle {
|
|
2407
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2408
|
+
return handleFromPtr_whatsapp_Message(&op.Message)
|
|
2440
2409
|
}
|
|
2441
2410
|
|
|
2442
|
-
//export
|
|
2443
|
-
func
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
2448
|
-
}
|
|
2449
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2411
|
+
//export whatsapp_EventPayload_Message_Set
|
|
2412
|
+
func whatsapp_EventPayload_Message_Set(handle CGoHandle, val CGoHandle) {
|
|
2413
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2414
|
+
op.Message = *ptrFromHandle_whatsapp_Message(val)
|
|
2415
|
+
}
|
|
2450
2416
|
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
C.free(unsafe.Pointer(estr))
|
|
2456
|
-
return handleFromPtr_whatsapp_Group(nil)
|
|
2457
|
-
}
|
|
2458
|
-
return handleFromPtr_whatsapp_Group(&cret)
|
|
2417
|
+
//export whatsapp_EventPayload_ChatState_Get
|
|
2418
|
+
func whatsapp_EventPayload_ChatState_Get(handle CGoHandle) CGoHandle {
|
|
2419
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2420
|
+
return handleFromPtr_whatsapp_ChatState(&op.ChatState)
|
|
2459
2421
|
}
|
|
2460
2422
|
|
|
2461
|
-
//export
|
|
2462
|
-
func
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
return errorGoToPy(nil)
|
|
2467
|
-
}
|
|
2468
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2423
|
+
//export whatsapp_EventPayload_ChatState_Set
|
|
2424
|
+
func whatsapp_EventPayload_ChatState_Set(handle CGoHandle, val CGoHandle) {
|
|
2425
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2426
|
+
op.ChatState = *ptrFromHandle_whatsapp_ChatState(val)
|
|
2427
|
+
}
|
|
2469
2428
|
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
return estr
|
|
2475
|
-
}
|
|
2476
|
-
return C.CString("")
|
|
2429
|
+
//export whatsapp_EventPayload_Receipt_Get
|
|
2430
|
+
func whatsapp_EventPayload_Receipt_Get(handle CGoHandle) CGoHandle {
|
|
2431
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2432
|
+
return handleFromPtr_whatsapp_Receipt(&op.Receipt)
|
|
2477
2433
|
}
|
|
2478
2434
|
|
|
2479
|
-
//export
|
|
2480
|
-
func
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2485
|
-
}
|
|
2486
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2435
|
+
//export whatsapp_EventPayload_Receipt_Set
|
|
2436
|
+
func whatsapp_EventPayload_Receipt_Set(handle CGoHandle, val CGoHandle) {
|
|
2437
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2438
|
+
op.Receipt = *ptrFromHandle_whatsapp_Receipt(val)
|
|
2439
|
+
}
|
|
2487
2440
|
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
C.free(unsafe.Pointer(estr))
|
|
2493
|
-
return handleFromPtr_whatsapp_Avatar(nil)
|
|
2494
|
-
}
|
|
2495
|
-
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2441
|
+
//export whatsapp_EventPayload_Group_Get
|
|
2442
|
+
func whatsapp_EventPayload_Group_Get(handle CGoHandle) CGoHandle {
|
|
2443
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2444
|
+
return handleFromPtr_whatsapp_Group(&op.Group)
|
|
2496
2445
|
}
|
|
2497
2446
|
|
|
2498
|
-
//export
|
|
2499
|
-
func
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
return C.CString("")
|
|
2504
|
-
}
|
|
2505
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2447
|
+
//export whatsapp_EventPayload_Group_Set
|
|
2448
|
+
func whatsapp_EventPayload_Group_Set(handle CGoHandle, val CGoHandle) {
|
|
2449
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2450
|
+
op.Group = *ptrFromHandle_whatsapp_Group(val)
|
|
2451
|
+
}
|
|
2506
2452
|
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
C.free(unsafe.Pointer(estr))
|
|
2512
|
-
return C.CString("")
|
|
2513
|
-
}
|
|
2514
|
-
return C.CString(cret)
|
|
2453
|
+
//export whatsapp_EventPayload_Call_Get
|
|
2454
|
+
func whatsapp_EventPayload_Call_Get(handle CGoHandle) CGoHandle {
|
|
2455
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2456
|
+
return handleFromPtr_whatsapp_Call(&op.Call)
|
|
2515
2457
|
}
|
|
2516
2458
|
|
|
2517
|
-
//export
|
|
2518
|
-
func
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
return errorGoToPy(nil)
|
|
2523
|
-
}
|
|
2524
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
2459
|
+
//export whatsapp_EventPayload_Call_Set
|
|
2460
|
+
func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
2461
|
+
op := ptrFromHandle_whatsapp_EventPayload(handle)
|
|
2462
|
+
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2463
|
+
}
|
|
2525
2464
|
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
}
|
|
2532
|
-
return C.CString("")
|
|
2465
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2466
|
+
//
|
|
2467
|
+
//export whatsapp_Location_CTor
|
|
2468
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2469
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2533
2470
|
}
|
|
2534
2471
|
|
|
2535
|
-
//export
|
|
2536
|
-
func
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
return errorGoToPy(nil)
|
|
2541
|
-
}
|
|
2542
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
2472
|
+
//export whatsapp_Location_Latitude_Get
|
|
2473
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2474
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2475
|
+
return C.double(op.Latitude)
|
|
2476
|
+
}
|
|
2543
2477
|
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
return estr
|
|
2549
|
-
}
|
|
2550
|
-
return C.CString("")
|
|
2478
|
+
//export whatsapp_Location_Latitude_Set
|
|
2479
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2480
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2481
|
+
op.Latitude = float64(val)
|
|
2551
2482
|
}
|
|
2552
2483
|
|
|
2553
|
-
//export
|
|
2554
|
-
func
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2559
|
-
}
|
|
2560
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
2484
|
+
//export whatsapp_Location_Longitude_Get
|
|
2485
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2486
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2487
|
+
return C.double(op.Longitude)
|
|
2488
|
+
}
|
|
2561
2489
|
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
C.free(unsafe.Pointer(estr))
|
|
2567
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
2568
|
-
}
|
|
2569
|
-
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
2490
|
+
//export whatsapp_Location_Longitude_Set
|
|
2491
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2492
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2493
|
+
op.Longitude = float64(val)
|
|
2570
2494
|
}
|
|
2571
2495
|
|
|
2572
|
-
//export
|
|
2573
|
-
func
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
return handleFromPtr_whatsapp_Contact(nil)
|
|
2578
|
-
}
|
|
2579
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
2496
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2497
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2498
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2499
|
+
return C.longlong(op.Accuracy)
|
|
2500
|
+
}
|
|
2580
2501
|
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2502
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2503
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2504
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2505
|
+
op.Accuracy = int(val)
|
|
2506
|
+
}
|
|
2507
|
+
|
|
2508
|
+
//export whatsapp_Location_IsLive_Get
|
|
2509
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2510
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2511
|
+
return boolGoToPy(op.IsLive)
|
|
2512
|
+
}
|
|
2513
|
+
|
|
2514
|
+
//export whatsapp_Location_IsLive_Set
|
|
2515
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2516
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2517
|
+
op.IsLive = boolPyToGo(val)
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
//export whatsapp_Location_Name_Get
|
|
2521
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2522
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2523
|
+
return C.CString(op.Name)
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
//export whatsapp_Location_Name_Set
|
|
2527
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2528
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2529
|
+
op.Name = C.GoString(val)
|
|
2530
|
+
}
|
|
2531
|
+
|
|
2532
|
+
//export whatsapp_Location_Address_Get
|
|
2533
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2534
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2535
|
+
return C.CString(op.Address)
|
|
2536
|
+
}
|
|
2537
|
+
|
|
2538
|
+
//export whatsapp_Location_Address_Set
|
|
2539
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2540
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2541
|
+
op.Address = C.GoString(val)
|
|
2542
|
+
}
|
|
2543
|
+
|
|
2544
|
+
//export whatsapp_Location_URL_Get
|
|
2545
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2546
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2547
|
+
return C.CString(op.URL)
|
|
2548
|
+
}
|
|
2549
|
+
|
|
2550
|
+
//export whatsapp_Location_URL_Set
|
|
2551
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2552
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2553
|
+
op.URL = C.GoString(val)
|
|
2554
|
+
}
|
|
2555
|
+
|
|
2556
|
+
// --- wrapping struct: whatsapp.PollOption ---
|
|
2557
|
+
//
|
|
2558
|
+
//export whatsapp_PollOption_CTor
|
|
2559
|
+
func whatsapp_PollOption_CTor() CGoHandle {
|
|
2560
|
+
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
2561
|
+
}
|
|
2562
|
+
|
|
2563
|
+
//export whatsapp_PollOption_Title_Get
|
|
2564
|
+
func whatsapp_PollOption_Title_Get(handle CGoHandle) *C.char {
|
|
2565
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2566
|
+
return C.CString(op.Title)
|
|
2567
|
+
}
|
|
2568
|
+
|
|
2569
|
+
//export whatsapp_PollOption_Title_Set
|
|
2570
|
+
func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
2571
|
+
op := ptrFromHandle_whatsapp_PollOption(handle)
|
|
2572
|
+
op.Title = C.GoString(val)
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
// --- wrapping struct: whatsapp.LoggedOut ---
|
|
2576
|
+
//
|
|
2577
|
+
//export whatsapp_LoggedOut_CTor
|
|
2578
|
+
func whatsapp_LoggedOut_CTor() CGoHandle {
|
|
2579
|
+
return CGoHandle(handleFromPtr_whatsapp_LoggedOut(&whatsapp.LoggedOut{}))
|
|
2580
|
+
}
|
|
2581
|
+
|
|
2582
|
+
//export whatsapp_LoggedOut_Reason_Get
|
|
2583
|
+
func whatsapp_LoggedOut_Reason_Get(handle CGoHandle) *C.char {
|
|
2584
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2585
|
+
return C.CString(op.Reason)
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
//export whatsapp_LoggedOut_Reason_Set
|
|
2589
|
+
func whatsapp_LoggedOut_Reason_Set(handle CGoHandle, val *C.char) {
|
|
2590
|
+
op := ptrFromHandle_whatsapp_LoggedOut(handle)
|
|
2591
|
+
op.Reason = C.GoString(val)
|
|
2592
|
+
}
|
|
2593
|
+
|
|
2594
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
2595
|
+
//
|
|
2596
|
+
//export whatsapp_Message_CTor
|
|
2597
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
2598
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2599
|
+
}
|
|
2600
|
+
|
|
2601
|
+
//export whatsapp_Message_Kind_Get
|
|
2602
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2603
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2604
|
+
return C.longlong(int(op.Kind))
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
//export whatsapp_Message_Kind_Set
|
|
2608
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2609
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2610
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
2611
|
+
}
|
|
2612
|
+
|
|
2613
|
+
//export whatsapp_Message_ID_Get
|
|
2614
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
2615
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2616
|
+
return C.CString(op.ID)
|
|
2617
|
+
}
|
|
2618
|
+
|
|
2619
|
+
//export whatsapp_Message_ID_Set
|
|
2620
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
2621
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2622
|
+
op.ID = C.GoString(val)
|
|
2623
|
+
}
|
|
2624
|
+
|
|
2625
|
+
//export whatsapp_Message_JID_Get
|
|
2626
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
2627
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2628
|
+
return C.CString(op.JID)
|
|
2629
|
+
}
|
|
2630
|
+
|
|
2631
|
+
//export whatsapp_Message_JID_Set
|
|
2632
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
2633
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2634
|
+
op.JID = C.GoString(val)
|
|
2635
|
+
}
|
|
2636
|
+
|
|
2637
|
+
//export whatsapp_Message_GroupJID_Get
|
|
2638
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2639
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2640
|
+
return C.CString(op.GroupJID)
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
//export whatsapp_Message_GroupJID_Set
|
|
2644
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2645
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2646
|
+
op.GroupJID = C.GoString(val)
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
//export whatsapp_Message_OriginJID_Get
|
|
2650
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
2651
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2652
|
+
return C.CString(op.OriginJID)
|
|
2589
2653
|
}
|
|
2590
2654
|
|
|
2591
|
-
//export
|
|
2592
|
-
func
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
return errorGoToPy(nil)
|
|
2597
|
-
}
|
|
2598
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
2655
|
+
//export whatsapp_Message_OriginJID_Set
|
|
2656
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
2657
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2658
|
+
op.OriginJID = C.GoString(val)
|
|
2659
|
+
}
|
|
2599
2660
|
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
return estr
|
|
2605
|
-
}
|
|
2606
|
-
return C.CString("")
|
|
2661
|
+
//export whatsapp_Message_Body_Get
|
|
2662
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
2663
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2664
|
+
return C.CString(op.Body)
|
|
2607
2665
|
}
|
|
2608
2666
|
|
|
2609
|
-
//export
|
|
2610
|
-
func
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2614
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2615
|
-
if __err != nil {
|
|
2616
|
-
return
|
|
2617
|
-
}
|
|
2618
|
-
if boolPyToGo(goRun) {
|
|
2619
|
-
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2620
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2621
|
-
return
|
|
2622
|
-
}
|
|
2623
|
-
_gstate := C.PyGILState_Ensure()
|
|
2624
|
-
_fcargs := C.PyTuple_New(2)
|
|
2625
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2626
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2627
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2628
|
-
C.gopy_decref(_fcargs)
|
|
2629
|
-
C.gopy_err_handle()
|
|
2630
|
-
C.PyGILState_Release(_gstate)
|
|
2631
|
-
})
|
|
2632
|
-
} else {
|
|
2633
|
-
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
2634
|
-
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
2635
|
-
return
|
|
2636
|
-
}
|
|
2637
|
-
_gstate := C.PyGILState_Ensure()
|
|
2638
|
-
_fcargs := C.PyTuple_New(2)
|
|
2639
|
-
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
2640
|
-
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
2641
|
-
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
2642
|
-
C.gopy_decref(_fcargs)
|
|
2643
|
-
C.gopy_err_handle()
|
|
2644
|
-
C.PyGILState_Release(_gstate)
|
|
2645
|
-
})
|
|
2646
|
-
}
|
|
2667
|
+
//export whatsapp_Message_Body_Set
|
|
2668
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
2669
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2670
|
+
op.Body = C.GoString(val)
|
|
2647
2671
|
}
|
|
2648
2672
|
|
|
2649
|
-
//
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2673
|
+
//export whatsapp_Message_Timestamp_Get
|
|
2674
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2675
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2676
|
+
return C.longlong(op.Timestamp)
|
|
2654
2677
|
}
|
|
2655
2678
|
|
|
2656
|
-
//export
|
|
2657
|
-
func
|
|
2658
|
-
op :=
|
|
2659
|
-
|
|
2679
|
+
//export whatsapp_Message_Timestamp_Set
|
|
2680
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2681
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2682
|
+
op.Timestamp = int64(val)
|
|
2660
2683
|
}
|
|
2661
2684
|
|
|
2662
|
-
//export
|
|
2663
|
-
func
|
|
2664
|
-
op :=
|
|
2665
|
-
op.
|
|
2685
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
2686
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
2687
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2688
|
+
return boolGoToPy(op.IsCarbon)
|
|
2666
2689
|
}
|
|
2667
2690
|
|
|
2668
|
-
//export
|
|
2669
|
-
func
|
|
2670
|
-
op :=
|
|
2671
|
-
|
|
2691
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
2692
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
2693
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2694
|
+
op.IsCarbon = boolPyToGo(val)
|
|
2672
2695
|
}
|
|
2673
2696
|
|
|
2674
|
-
//export
|
|
2675
|
-
func
|
|
2676
|
-
op :=
|
|
2677
|
-
op.
|
|
2697
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
2698
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
2699
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2700
|
+
return boolGoToPy(op.IsForwarded)
|
|
2678
2701
|
}
|
|
2679
2702
|
|
|
2680
|
-
//export
|
|
2681
|
-
func
|
|
2682
|
-
op :=
|
|
2683
|
-
|
|
2703
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
2704
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
2705
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2706
|
+
op.IsForwarded = boolPyToGo(val)
|
|
2684
2707
|
}
|
|
2685
2708
|
|
|
2686
|
-
//export
|
|
2687
|
-
func
|
|
2688
|
-
op :=
|
|
2689
|
-
op.
|
|
2709
|
+
//export whatsapp_Message_ReplyID_Get
|
|
2710
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
2711
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2712
|
+
return C.CString(op.ReplyID)
|
|
2690
2713
|
}
|
|
2691
2714
|
|
|
2692
|
-
//
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
return CGoHandle(handleFromPtr_whatsapp_EventPayload(&whatsapp.EventPayload{}))
|
|
2715
|
+
//export whatsapp_Message_ReplyID_Set
|
|
2716
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
2717
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2718
|
+
op.ReplyID = C.GoString(val)
|
|
2697
2719
|
}
|
|
2698
2720
|
|
|
2699
|
-
//export
|
|
2700
|
-
func
|
|
2701
|
-
op :=
|
|
2702
|
-
return C.CString(op.
|
|
2721
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
2722
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
2723
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2724
|
+
return C.CString(op.ReplyBody)
|
|
2703
2725
|
}
|
|
2704
2726
|
|
|
2705
|
-
//export
|
|
2706
|
-
func
|
|
2707
|
-
op :=
|
|
2708
|
-
op.
|
|
2727
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
2728
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
2729
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2730
|
+
op.ReplyBody = C.GoString(val)
|
|
2709
2731
|
}
|
|
2710
2732
|
|
|
2711
|
-
//export
|
|
2712
|
-
func
|
|
2713
|
-
op :=
|
|
2714
|
-
return
|
|
2733
|
+
//export whatsapp_Message_Attachments_Get
|
|
2734
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
2735
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2736
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
2715
2737
|
}
|
|
2716
2738
|
|
|
2717
|
-
//export
|
|
2718
|
-
func
|
|
2719
|
-
op :=
|
|
2720
|
-
op.
|
|
2739
|
+
//export whatsapp_Message_Attachments_Set
|
|
2740
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
2741
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2742
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2721
2743
|
}
|
|
2722
2744
|
|
|
2723
|
-
//export
|
|
2724
|
-
func
|
|
2725
|
-
op :=
|
|
2726
|
-
return
|
|
2745
|
+
//export whatsapp_Message_Preview_Get
|
|
2746
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
2747
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2748
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
2727
2749
|
}
|
|
2728
2750
|
|
|
2729
|
-
//export
|
|
2730
|
-
func
|
|
2731
|
-
op :=
|
|
2732
|
-
op.
|
|
2751
|
+
//export whatsapp_Message_Preview_Set
|
|
2752
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
2753
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2754
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
2733
2755
|
}
|
|
2734
2756
|
|
|
2735
|
-
//export
|
|
2736
|
-
func
|
|
2737
|
-
op :=
|
|
2738
|
-
return
|
|
2757
|
+
//export whatsapp_Message_Location_Get
|
|
2758
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
2759
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2760
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
2739
2761
|
}
|
|
2740
2762
|
|
|
2741
|
-
//export
|
|
2742
|
-
func
|
|
2743
|
-
op :=
|
|
2744
|
-
op.
|
|
2763
|
+
//export whatsapp_Message_Location_Set
|
|
2764
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
2765
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2766
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
2745
2767
|
}
|
|
2746
2768
|
|
|
2747
|
-
//export
|
|
2748
|
-
func
|
|
2749
|
-
op :=
|
|
2750
|
-
return
|
|
2769
|
+
//export whatsapp_Message_Poll_Get
|
|
2770
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
2771
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2772
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
2751
2773
|
}
|
|
2752
2774
|
|
|
2753
|
-
//export
|
|
2754
|
-
func
|
|
2755
|
-
op :=
|
|
2756
|
-
op.
|
|
2775
|
+
//export whatsapp_Message_Poll_Set
|
|
2776
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
2777
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2778
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
2757
2779
|
}
|
|
2758
2780
|
|
|
2759
|
-
//export
|
|
2760
|
-
func
|
|
2761
|
-
op :=
|
|
2762
|
-
return
|
|
2781
|
+
//export whatsapp_Message_Album_Get
|
|
2782
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
2783
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2784
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
2763
2785
|
}
|
|
2764
2786
|
|
|
2765
|
-
//export
|
|
2766
|
-
func
|
|
2767
|
-
op :=
|
|
2768
|
-
op.
|
|
2787
|
+
//export whatsapp_Message_Album_Set
|
|
2788
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
2789
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2790
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
2769
2791
|
}
|
|
2770
2792
|
|
|
2771
|
-
//export
|
|
2772
|
-
func
|
|
2773
|
-
op :=
|
|
2774
|
-
return
|
|
2793
|
+
//export whatsapp_Message_GroupInvite_Get
|
|
2794
|
+
func whatsapp_Message_GroupInvite_Get(handle CGoHandle) CGoHandle {
|
|
2795
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2796
|
+
return handleFromPtr_whatsapp_Group(&op.GroupInvite)
|
|
2775
2797
|
}
|
|
2776
2798
|
|
|
2777
|
-
//export
|
|
2778
|
-
func
|
|
2779
|
-
op :=
|
|
2780
|
-
op.
|
|
2799
|
+
//export whatsapp_Message_GroupInvite_Set
|
|
2800
|
+
func whatsapp_Message_GroupInvite_Set(handle CGoHandle, val CGoHandle) {
|
|
2801
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2802
|
+
op.GroupInvite = *ptrFromHandle_whatsapp_Group(val)
|
|
2781
2803
|
}
|
|
2782
2804
|
|
|
2783
|
-
//export
|
|
2784
|
-
func
|
|
2785
|
-
op :=
|
|
2786
|
-
return
|
|
2805
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
2806
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
2807
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2808
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
2787
2809
|
}
|
|
2788
2810
|
|
|
2789
|
-
//export
|
|
2790
|
-
func
|
|
2791
|
-
op :=
|
|
2792
|
-
op.
|
|
2811
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
2812
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
2813
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2814
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
2793
2815
|
}
|
|
2794
2816
|
|
|
2795
|
-
//export
|
|
2796
|
-
func
|
|
2797
|
-
op :=
|
|
2798
|
-
return
|
|
2817
|
+
//export whatsapp_Message_Receipts_Get
|
|
2818
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
2819
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2820
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
2799
2821
|
}
|
|
2800
2822
|
|
|
2801
|
-
//export
|
|
2802
|
-
func
|
|
2803
|
-
op :=
|
|
2804
|
-
op.
|
|
2823
|
+
//export whatsapp_Message_Receipts_Set
|
|
2824
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
2825
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2826
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
2805
2827
|
}
|
|
2806
2828
|
|
|
2807
|
-
//export
|
|
2808
|
-
func
|
|
2809
|
-
op :=
|
|
2810
|
-
return
|
|
2829
|
+
//export whatsapp_Message_Reactions_Get
|
|
2830
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
2831
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2832
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
2811
2833
|
}
|
|
2812
2834
|
|
|
2813
|
-
//export
|
|
2814
|
-
func
|
|
2815
|
-
op :=
|
|
2816
|
-
op.
|
|
2835
|
+
//export whatsapp_Message_Reactions_Set
|
|
2836
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
2837
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2838
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
2817
2839
|
}
|
|
2818
2840
|
|
|
2819
|
-
//
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2841
|
+
//export whatsapp_Message_IsHistory_Get
|
|
2842
|
+
func whatsapp_Message_IsHistory_Get(handle CGoHandle) C.char {
|
|
2843
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2844
|
+
return boolGoToPy(op.IsHistory)
|
|
2824
2845
|
}
|
|
2825
2846
|
|
|
2826
|
-
//export
|
|
2827
|
-
func
|
|
2828
|
-
op :=
|
|
2829
|
-
|
|
2847
|
+
//export whatsapp_Message_IsHistory_Set
|
|
2848
|
+
func whatsapp_Message_IsHistory_Set(handle CGoHandle, val C.char) {
|
|
2849
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2850
|
+
op.IsHistory = boolPyToGo(val)
|
|
2830
2851
|
}
|
|
2831
2852
|
|
|
2832
|
-
//
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2853
|
+
// --- wrapping struct: whatsapp.Poll ---
|
|
2854
|
+
//
|
|
2855
|
+
//export whatsapp_Poll_CTor
|
|
2856
|
+
func whatsapp_Poll_CTor() CGoHandle {
|
|
2857
|
+
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
2836
2858
|
}
|
|
2837
2859
|
|
|
2838
|
-
//export
|
|
2839
|
-
func
|
|
2840
|
-
op :=
|
|
2841
|
-
return C.
|
|
2860
|
+
//export whatsapp_Poll_Title_Get
|
|
2861
|
+
func whatsapp_Poll_Title_Get(handle CGoHandle) *C.char {
|
|
2862
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2863
|
+
return C.CString(op.Title)
|
|
2842
2864
|
}
|
|
2843
2865
|
|
|
2844
|
-
//export
|
|
2845
|
-
func
|
|
2846
|
-
op :=
|
|
2847
|
-
op.
|
|
2866
|
+
//export whatsapp_Poll_Title_Set
|
|
2867
|
+
func whatsapp_Poll_Title_Set(handle CGoHandle, val *C.char) {
|
|
2868
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2869
|
+
op.Title = C.GoString(val)
|
|
2848
2870
|
}
|
|
2849
2871
|
|
|
2850
|
-
//export
|
|
2851
|
-
func
|
|
2852
|
-
op :=
|
|
2853
|
-
return
|
|
2872
|
+
//export whatsapp_Poll_Options_Get
|
|
2873
|
+
func whatsapp_Poll_Options_Get(handle CGoHandle) CGoHandle {
|
|
2874
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2875
|
+
return handleFromPtr_Slice_whatsapp_PollOption(&op.Options)
|
|
2854
2876
|
}
|
|
2855
2877
|
|
|
2856
|
-
//export
|
|
2857
|
-
func
|
|
2858
|
-
op :=
|
|
2859
|
-
op.
|
|
2878
|
+
//export whatsapp_Poll_Options_Set
|
|
2879
|
+
func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
2880
|
+
op := ptrFromHandle_whatsapp_Poll(handle)
|
|
2881
|
+
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
2860
2882
|
}
|
|
2861
2883
|
|
|
2862
|
-
// --- wrapping struct: whatsapp.
|
|
2884
|
+
// --- wrapping struct: whatsapp.Session ---
|
|
2863
2885
|
//
|
|
2864
|
-
//export
|
|
2865
|
-
func
|
|
2866
|
-
return CGoHandle(
|
|
2886
|
+
//export whatsapp_Session_CTor
|
|
2887
|
+
func whatsapp_Session_CTor() CGoHandle {
|
|
2888
|
+
return CGoHandle(handleFromPtr_whatsapp_Session(&whatsapp.Session{}))
|
|
2867
2889
|
}
|
|
2868
2890
|
|
|
2869
|
-
//export
|
|
2870
|
-
func
|
|
2871
|
-
|
|
2872
|
-
|
|
2891
|
+
//export whatsapp_Session_Login
|
|
2892
|
+
func whatsapp_Session_Login(_handle CGoHandle) *C.char {
|
|
2893
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2894
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2895
|
+
if __err != nil {
|
|
2896
|
+
return errorGoToPy(nil)
|
|
2897
|
+
}
|
|
2898
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Login()
|
|
2899
|
+
|
|
2900
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2901
|
+
if __err != nil {
|
|
2902
|
+
estr := C.CString(__err.Error())
|
|
2903
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2904
|
+
return estr
|
|
2905
|
+
}
|
|
2906
|
+
return C.CString("")
|
|
2873
2907
|
}
|
|
2874
2908
|
|
|
2875
|
-
//export
|
|
2876
|
-
func
|
|
2877
|
-
|
|
2878
|
-
|
|
2909
|
+
//export whatsapp_Session_Logout
|
|
2910
|
+
func whatsapp_Session_Logout(_handle CGoHandle) *C.char {
|
|
2911
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2912
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2913
|
+
if __err != nil {
|
|
2914
|
+
return errorGoToPy(nil)
|
|
2915
|
+
}
|
|
2916
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Logout()
|
|
2917
|
+
|
|
2918
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2919
|
+
if __err != nil {
|
|
2920
|
+
estr := C.CString(__err.Error())
|
|
2921
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2922
|
+
return estr
|
|
2923
|
+
}
|
|
2924
|
+
return C.CString("")
|
|
2879
2925
|
}
|
|
2880
2926
|
|
|
2881
|
-
//export
|
|
2882
|
-
func
|
|
2883
|
-
|
|
2884
|
-
|
|
2927
|
+
//export whatsapp_Session_Disconnect
|
|
2928
|
+
func whatsapp_Session_Disconnect(_handle CGoHandle) *C.char {
|
|
2929
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2930
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2931
|
+
if __err != nil {
|
|
2932
|
+
return errorGoToPy(nil)
|
|
2933
|
+
}
|
|
2934
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).Disconnect()
|
|
2935
|
+
|
|
2936
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2937
|
+
if __err != nil {
|
|
2938
|
+
estr := C.CString(__err.Error())
|
|
2939
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2940
|
+
return estr
|
|
2941
|
+
}
|
|
2942
|
+
return C.CString("")
|
|
2885
2943
|
}
|
|
2886
2944
|
|
|
2887
|
-
//export
|
|
2888
|
-
func
|
|
2889
|
-
|
|
2890
|
-
|
|
2945
|
+
//export whatsapp_Session_PairPhone
|
|
2946
|
+
func whatsapp_Session_PairPhone(_handle CGoHandle, phone *C.char) *C.char {
|
|
2947
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2948
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2949
|
+
if __err != nil {
|
|
2950
|
+
return C.CString("")
|
|
2951
|
+
}
|
|
2952
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).PairPhone(C.GoString(phone))
|
|
2953
|
+
|
|
2954
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2955
|
+
if __err != nil {
|
|
2956
|
+
estr := C.CString(__err.Error())
|
|
2957
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2958
|
+
C.free(unsafe.Pointer(estr))
|
|
2959
|
+
return C.CString("")
|
|
2960
|
+
}
|
|
2961
|
+
return C.CString(cret)
|
|
2891
2962
|
}
|
|
2892
2963
|
|
|
2893
|
-
//export
|
|
2894
|
-
func
|
|
2895
|
-
|
|
2896
|
-
|
|
2964
|
+
//export whatsapp_Session_SendMessage
|
|
2965
|
+
func whatsapp_Session_SendMessage(_handle CGoHandle, message CGoHandle) *C.char {
|
|
2966
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2967
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2968
|
+
if __err != nil {
|
|
2969
|
+
return errorGoToPy(nil)
|
|
2970
|
+
}
|
|
2971
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendMessage(*ptrFromHandle_whatsapp_Message(message))
|
|
2972
|
+
|
|
2973
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2974
|
+
if __err != nil {
|
|
2975
|
+
estr := C.CString(__err.Error())
|
|
2976
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2977
|
+
return estr
|
|
2978
|
+
}
|
|
2979
|
+
return C.CString("")
|
|
2897
2980
|
}
|
|
2898
2981
|
|
|
2899
|
-
//export
|
|
2900
|
-
func
|
|
2901
|
-
|
|
2902
|
-
|
|
2982
|
+
//export whatsapp_Session_GenerateMessageID
|
|
2983
|
+
func whatsapp_Session_GenerateMessageID(_handle CGoHandle) *C.char {
|
|
2984
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2985
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2986
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2987
|
+
if __err != nil {
|
|
2988
|
+
return C.CString("")
|
|
2989
|
+
}
|
|
2990
|
+
return C.CString(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GenerateMessageID())
|
|
2991
|
+
|
|
2903
2992
|
}
|
|
2904
2993
|
|
|
2905
|
-
//
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2994
|
+
//export whatsapp_Session_SendChatState
|
|
2995
|
+
func whatsapp_Session_SendChatState(_handle CGoHandle, state CGoHandle) *C.char {
|
|
2996
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2997
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2998
|
+
if __err != nil {
|
|
2999
|
+
return errorGoToPy(nil)
|
|
3000
|
+
}
|
|
3001
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendChatState(*ptrFromHandle_whatsapp_ChatState(state))
|
|
3002
|
+
|
|
3003
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3004
|
+
if __err != nil {
|
|
3005
|
+
estr := C.CString(__err.Error())
|
|
3006
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3007
|
+
return estr
|
|
3008
|
+
}
|
|
3009
|
+
return C.CString("")
|
|
2910
3010
|
}
|
|
2911
3011
|
|
|
2912
|
-
//export
|
|
2913
|
-
func
|
|
2914
|
-
|
|
2915
|
-
|
|
3012
|
+
//export whatsapp_Session_SendReceipt
|
|
3013
|
+
func whatsapp_Session_SendReceipt(_handle CGoHandle, receipt CGoHandle) *C.char {
|
|
3014
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3015
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3016
|
+
if __err != nil {
|
|
3017
|
+
return errorGoToPy(nil)
|
|
3018
|
+
}
|
|
3019
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendReceipt(*ptrFromHandle_whatsapp_Receipt(receipt))
|
|
3020
|
+
|
|
3021
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3022
|
+
if __err != nil {
|
|
3023
|
+
estr := C.CString(__err.Error())
|
|
3024
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3025
|
+
return estr
|
|
3026
|
+
}
|
|
3027
|
+
return C.CString("")
|
|
2916
3028
|
}
|
|
2917
3029
|
|
|
2918
|
-
//export
|
|
2919
|
-
func
|
|
2920
|
-
|
|
2921
|
-
|
|
3030
|
+
//export whatsapp_Session_SendPresence
|
|
3031
|
+
func whatsapp_Session_SendPresence(_handle CGoHandle, presence C.longlong, statusMessage *C.char) *C.char {
|
|
3032
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3033
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3034
|
+
if __err != nil {
|
|
3035
|
+
return errorGoToPy(nil)
|
|
3036
|
+
}
|
|
3037
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SendPresence(whatsapp.PresenceKind(int(presence)), C.GoString(statusMessage))
|
|
3038
|
+
|
|
3039
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3040
|
+
if __err != nil {
|
|
3041
|
+
estr := C.CString(__err.Error())
|
|
3042
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3043
|
+
return estr
|
|
3044
|
+
}
|
|
3045
|
+
return C.CString("")
|
|
2922
3046
|
}
|
|
2923
3047
|
|
|
2924
|
-
//export
|
|
2925
|
-
func
|
|
3048
|
+
//export whatsapp_Session_GetContacts
|
|
3049
|
+
func whatsapp_Session_GetContacts(_handle CGoHandle, refresh C.char) CGoHandle {
|
|
2926
3050
|
_saved_thread := C.PyEval_SaveThread()
|
|
2927
|
-
|
|
2928
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3051
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
2929
3052
|
if __err != nil {
|
|
2930
|
-
return
|
|
3053
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
2931
3054
|
}
|
|
2932
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.
|
|
2933
|
-
|
|
2934
|
-
return handleFromPtr_types_JID(&cret)
|
|
2935
|
-
}
|
|
3055
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetContacts(boolPyToGo(refresh))
|
|
2936
3056
|
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
3057
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3058
|
+
if __err != nil {
|
|
3059
|
+
estr := C.CString(__err.Error())
|
|
3060
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3061
|
+
C.free(unsafe.Pointer(estr))
|
|
3062
|
+
return handleFromPtr_Slice_whatsapp_Contact(nil)
|
|
3063
|
+
}
|
|
3064
|
+
return handleFromPtr_Slice_whatsapp_Contact(&cret)
|
|
2942
3065
|
}
|
|
2943
3066
|
|
|
2944
|
-
//export
|
|
2945
|
-
func
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
3067
|
+
//export whatsapp_Session_GetGroups
|
|
3068
|
+
func whatsapp_Session_GetGroups(_handle CGoHandle) CGoHandle {
|
|
3069
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3070
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3071
|
+
if __err != nil {
|
|
3072
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3073
|
+
}
|
|
3074
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetGroups()
|
|
2949
3075
|
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
3076
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3077
|
+
if __err != nil {
|
|
3078
|
+
estr := C.CString(__err.Error())
|
|
3079
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3080
|
+
C.free(unsafe.Pointer(estr))
|
|
3081
|
+
return handleFromPtr_Slice_whatsapp_Group(nil)
|
|
3082
|
+
}
|
|
3083
|
+
return handleFromPtr_Slice_whatsapp_Group(&cret)
|
|
2954
3084
|
}
|
|
2955
3085
|
|
|
2956
|
-
//export
|
|
2957
|
-
func
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
3086
|
+
//export whatsapp_Session_CreateGroup
|
|
3087
|
+
func whatsapp_Session_CreateGroup(_handle CGoHandle, name *C.char, participants CGoHandle) CGoHandle {
|
|
3088
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3089
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3090
|
+
if __err != nil {
|
|
3091
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3092
|
+
}
|
|
3093
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).CreateGroup(C.GoString(name), deptrFromHandle_Slice_string(participants))
|
|
2961
3094
|
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
3095
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3096
|
+
if __err != nil {
|
|
3097
|
+
estr := C.CString(__err.Error())
|
|
3098
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3099
|
+
C.free(unsafe.Pointer(estr))
|
|
3100
|
+
return handleFromPtr_whatsapp_Group(nil)
|
|
3101
|
+
}
|
|
3102
|
+
return handleFromPtr_whatsapp_Group(&cret)
|
|
2966
3103
|
}
|
|
2967
3104
|
|
|
2968
|
-
//export
|
|
2969
|
-
func
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
3105
|
+
//export whatsapp_Session_LeaveGroup
|
|
3106
|
+
func whatsapp_Session_LeaveGroup(_handle CGoHandle, resourceID *C.char) *C.char {
|
|
3107
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3108
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3109
|
+
if __err != nil {
|
|
3110
|
+
return errorGoToPy(nil)
|
|
3111
|
+
}
|
|
3112
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).LeaveGroup(C.GoString(resourceID))
|
|
2973
3113
|
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
3114
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3115
|
+
if __err != nil {
|
|
3116
|
+
estr := C.CString(__err.Error())
|
|
3117
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3118
|
+
return estr
|
|
3119
|
+
}
|
|
3120
|
+
return C.CString("")
|
|
2978
3121
|
}
|
|
2979
3122
|
|
|
2980
|
-
//export
|
|
2981
|
-
func
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
3123
|
+
//export whatsapp_Session_GetAvatar
|
|
3124
|
+
func whatsapp_Session_GetAvatar(_handle CGoHandle, resourceID *C.char, avatarID *C.char) CGoHandle {
|
|
3125
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3126
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3127
|
+
if __err != nil {
|
|
3128
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3129
|
+
}
|
|
3130
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).GetAvatar(C.GoString(resourceID), C.GoString(avatarID))
|
|
2985
3131
|
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
3132
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3133
|
+
if __err != nil {
|
|
3134
|
+
estr := C.CString(__err.Error())
|
|
3135
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3136
|
+
C.free(unsafe.Pointer(estr))
|
|
3137
|
+
return handleFromPtr_whatsapp_Avatar(nil)
|
|
3138
|
+
}
|
|
3139
|
+
return handleFromPtr_whatsapp_Avatar(&cret)
|
|
2990
3140
|
}
|
|
2991
3141
|
|
|
2992
|
-
//export
|
|
2993
|
-
func
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
3142
|
+
//export whatsapp_Session_SetAvatar
|
|
3143
|
+
func whatsapp_Session_SetAvatar(_handle CGoHandle, resourceID *C.char, avatar CGoHandle) *C.char {
|
|
3144
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3145
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3146
|
+
if __err != nil {
|
|
3147
|
+
return C.CString("")
|
|
3148
|
+
}
|
|
3149
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetAvatar(C.GoString(resourceID), deptrFromHandle_Slice_byte(avatar))
|
|
2997
3150
|
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3151
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3152
|
+
if __err != nil {
|
|
3153
|
+
estr := C.CString(__err.Error())
|
|
3154
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3155
|
+
C.free(unsafe.Pointer(estr))
|
|
3156
|
+
return C.CString("")
|
|
3157
|
+
}
|
|
3158
|
+
return C.CString(cret)
|
|
3002
3159
|
}
|
|
3003
3160
|
|
|
3004
|
-
//
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
|
|
3009
|
-
|
|
3161
|
+
//export whatsapp_Session_SetGroupName
|
|
3162
|
+
func whatsapp_Session_SetGroupName(_handle CGoHandle, resourceID *C.char, name *C.char) *C.char {
|
|
3163
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3164
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3165
|
+
if __err != nil {
|
|
3166
|
+
return errorGoToPy(nil)
|
|
3167
|
+
}
|
|
3168
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupName(C.GoString(resourceID), C.GoString(name))
|
|
3010
3169
|
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3170
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3171
|
+
if __err != nil {
|
|
3172
|
+
estr := C.CString(__err.Error())
|
|
3173
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3174
|
+
return estr
|
|
3175
|
+
}
|
|
3176
|
+
return C.CString("")
|
|
3015
3177
|
}
|
|
3016
3178
|
|
|
3017
|
-
//export
|
|
3018
|
-
func
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3179
|
+
//export whatsapp_Session_SetGroupTopic
|
|
3180
|
+
func whatsapp_Session_SetGroupTopic(_handle CGoHandle, resourceID *C.char, topic *C.char) *C.char {
|
|
3181
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3182
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3183
|
+
if __err != nil {
|
|
3184
|
+
return errorGoToPy(nil)
|
|
3185
|
+
}
|
|
3186
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetGroupTopic(C.GoString(resourceID), C.GoString(topic))
|
|
3022
3187
|
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3188
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3189
|
+
if __err != nil {
|
|
3190
|
+
estr := C.CString(__err.Error())
|
|
3191
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3192
|
+
return estr
|
|
3193
|
+
}
|
|
3194
|
+
return C.CString("")
|
|
3027
3195
|
}
|
|
3028
3196
|
|
|
3029
|
-
//export
|
|
3030
|
-
func
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3197
|
+
//export whatsapp_Session_UpdateGroupParticipants
|
|
3198
|
+
func whatsapp_Session_UpdateGroupParticipants(_handle CGoHandle, resourceID *C.char, participants CGoHandle) CGoHandle {
|
|
3199
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3200
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3201
|
+
if __err != nil {
|
|
3202
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3203
|
+
}
|
|
3204
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).UpdateGroupParticipants(C.GoString(resourceID), deptrFromHandle_Slice_whatsapp_GroupParticipant(participants))
|
|
3034
3205
|
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3206
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3207
|
+
if __err != nil {
|
|
3208
|
+
estr := C.CString(__err.Error())
|
|
3209
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3210
|
+
C.free(unsafe.Pointer(estr))
|
|
3211
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(nil)
|
|
3212
|
+
}
|
|
3213
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&cret)
|
|
3039
3214
|
}
|
|
3040
3215
|
|
|
3041
|
-
//export
|
|
3042
|
-
func
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3216
|
+
//export whatsapp_Session_FindContact
|
|
3217
|
+
func whatsapp_Session_FindContact(_handle CGoHandle, phone *C.char) CGoHandle {
|
|
3218
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3219
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3220
|
+
if __err != nil {
|
|
3221
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3222
|
+
}
|
|
3223
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).FindContact(C.GoString(phone))
|
|
3046
3224
|
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3225
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3226
|
+
if __err != nil {
|
|
3227
|
+
estr := C.CString(__err.Error())
|
|
3228
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3229
|
+
C.free(unsafe.Pointer(estr))
|
|
3230
|
+
return handleFromPtr_whatsapp_Contact(nil)
|
|
3231
|
+
}
|
|
3232
|
+
return handleFromPtr_whatsapp_Contact(&cret)
|
|
3052
3233
|
}
|
|
3053
3234
|
|
|
3054
|
-
//export
|
|
3055
|
-
func
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3235
|
+
//export whatsapp_Session_RequestMessageHistory
|
|
3236
|
+
func whatsapp_Session_RequestMessageHistory(_handle CGoHandle, resourceID *C.char, oldestMessage CGoHandle) *C.char {
|
|
3237
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3238
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3239
|
+
if __err != nil {
|
|
3240
|
+
return errorGoToPy(nil)
|
|
3241
|
+
}
|
|
3242
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).RequestMessageHistory(C.GoString(resourceID), *ptrFromHandle_whatsapp_Message(oldestMessage))
|
|
3059
3243
|
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3244
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3245
|
+
if __err != nil {
|
|
3246
|
+
estr := C.CString(__err.Error())
|
|
3247
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3248
|
+
return estr
|
|
3249
|
+
}
|
|
3250
|
+
return C.CString("")
|
|
3064
3251
|
}
|
|
3065
3252
|
|
|
3066
|
-
//export
|
|
3067
|
-
func
|
|
3068
|
-
|
|
3069
|
-
|
|
3253
|
+
//export whatsapp_Session_SetEventHandler
|
|
3254
|
+
func whatsapp_Session_SetEventHandler(_handle CGoHandle, h *C.PyObject, goRun C.char) {
|
|
3255
|
+
_fun_arg := h
|
|
3256
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3257
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3258
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Session")
|
|
3259
|
+
if __err != nil {
|
|
3260
|
+
return
|
|
3261
|
+
}
|
|
3262
|
+
if boolPyToGo(goRun) {
|
|
3263
|
+
go gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3264
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3265
|
+
return
|
|
3266
|
+
}
|
|
3267
|
+
_gstate := C.PyGILState_Ensure()
|
|
3268
|
+
_fcargs := C.PyTuple_New(2)
|
|
3269
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3270
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3271
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3272
|
+
C.gopy_decref(_fcargs)
|
|
3273
|
+
C.gopy_err_handle()
|
|
3274
|
+
C.PyGILState_Release(_gstate)
|
|
3275
|
+
})
|
|
3276
|
+
} else {
|
|
3277
|
+
gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Session{})).(*whatsapp.Session).SetEventHandler(func(arg_0 whatsapp.EventKind, arg_1 *whatsapp.EventPayload) {
|
|
3278
|
+
if C.PyCallable_Check(_fun_arg) == 0 {
|
|
3279
|
+
return
|
|
3280
|
+
}
|
|
3281
|
+
_gstate := C.PyGILState_Ensure()
|
|
3282
|
+
_fcargs := C.PyTuple_New(2)
|
|
3283
|
+
C.PyTuple_SetItem(_fcargs, 0, C.gopy_build_int64(C.int64_t(arg_0)))
|
|
3284
|
+
C.PyTuple_SetItem(_fcargs, 1, C.gopy_build_int64(C.int64_t(handleFromPtr_Ptr_whatsapp_EventPayload(arg_1))))
|
|
3285
|
+
C.PyObject_CallObject(_fun_arg, _fcargs)
|
|
3286
|
+
C.gopy_decref(_fcargs)
|
|
3287
|
+
C.gopy_err_handle()
|
|
3288
|
+
C.PyGILState_Release(_gstate)
|
|
3289
|
+
})
|
|
3290
|
+
}
|
|
3070
3291
|
}
|
|
3071
3292
|
|
|
3072
|
-
//
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3293
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
3294
|
+
//
|
|
3295
|
+
//export whatsapp_Call_CTor
|
|
3296
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
3297
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3076
3298
|
}
|
|
3077
3299
|
|
|
3078
|
-
//export
|
|
3079
|
-
func
|
|
3080
|
-
op :=
|
|
3081
|
-
return C.
|
|
3300
|
+
//export whatsapp_Call_State_Get
|
|
3301
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3302
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3303
|
+
return C.longlong(int(op.State))
|
|
3082
3304
|
}
|
|
3083
3305
|
|
|
3084
|
-
//export
|
|
3085
|
-
func
|
|
3086
|
-
op :=
|
|
3087
|
-
op.
|
|
3306
|
+
//export whatsapp_Call_State_Set
|
|
3307
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3308
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3309
|
+
op.State = whatsapp.CallState(int(val))
|
|
3088
3310
|
}
|
|
3089
3311
|
|
|
3090
|
-
//export
|
|
3091
|
-
func
|
|
3092
|
-
op :=
|
|
3093
|
-
return
|
|
3312
|
+
//export whatsapp_Call_JID_Get
|
|
3313
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3314
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3315
|
+
return C.CString(op.JID)
|
|
3094
3316
|
}
|
|
3095
3317
|
|
|
3096
|
-
//export
|
|
3097
|
-
func
|
|
3098
|
-
op :=
|
|
3099
|
-
op.
|
|
3318
|
+
//export whatsapp_Call_JID_Set
|
|
3319
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3320
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3321
|
+
op.JID = C.GoString(val)
|
|
3100
3322
|
}
|
|
3101
3323
|
|
|
3102
|
-
//export
|
|
3103
|
-
func
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3108
|
-
}
|
|
3109
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
3324
|
+
//export whatsapp_Call_Timestamp_Get
|
|
3325
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3326
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3327
|
+
return C.longlong(op.Timestamp)
|
|
3328
|
+
}
|
|
3110
3329
|
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
C.free(unsafe.Pointer(estr))
|
|
3116
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
3117
|
-
}
|
|
3118
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
3330
|
+
//export whatsapp_Call_Timestamp_Set
|
|
3331
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3332
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3333
|
+
op.Timestamp = int64(val)
|
|
3119
3334
|
}
|
|
3120
3335
|
|
|
3121
3336
|
// --- wrapping struct: whatsapp.ChatState ---
|
|
@@ -3161,193 +3376,200 @@ func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
|
3161
3376
|
op.GroupJID = C.GoString(val)
|
|
3162
3377
|
}
|
|
3163
3378
|
|
|
3164
|
-
// --- wrapping struct: whatsapp.
|
|
3379
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3165
3380
|
//
|
|
3166
|
-
//export
|
|
3167
|
-
func
|
|
3168
|
-
return CGoHandle(
|
|
3381
|
+
//export whatsapp_Connect_CTor
|
|
3382
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3383
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3169
3384
|
}
|
|
3170
3385
|
|
|
3171
|
-
//export
|
|
3172
|
-
func
|
|
3173
|
-
op :=
|
|
3386
|
+
//export whatsapp_Connect_JID_Get
|
|
3387
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3388
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3174
3389
|
return C.CString(op.JID)
|
|
3175
3390
|
}
|
|
3176
3391
|
|
|
3177
|
-
//export
|
|
3178
|
-
func
|
|
3179
|
-
op :=
|
|
3392
|
+
//export whatsapp_Connect_JID_Set
|
|
3393
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3394
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3180
3395
|
op.JID = C.GoString(val)
|
|
3181
3396
|
}
|
|
3182
3397
|
|
|
3183
|
-
//export
|
|
3184
|
-
func
|
|
3185
|
-
op :=
|
|
3186
|
-
return C.CString(op.
|
|
3398
|
+
//export whatsapp_Connect_Error_Get
|
|
3399
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3400
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3401
|
+
return C.CString(op.Error)
|
|
3187
3402
|
}
|
|
3188
3403
|
|
|
3189
|
-
//export
|
|
3190
|
-
func
|
|
3191
|
-
op :=
|
|
3192
|
-
op.
|
|
3404
|
+
//export whatsapp_Connect_Error_Set
|
|
3405
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3406
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3407
|
+
op.Error = C.GoString(val)
|
|
3193
3408
|
}
|
|
3194
3409
|
|
|
3195
|
-
//
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3410
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
3411
|
+
//
|
|
3412
|
+
//export whatsapp_GroupSubject_CTor
|
|
3413
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
3414
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
3199
3415
|
}
|
|
3200
3416
|
|
|
3201
|
-
//export
|
|
3202
|
-
func
|
|
3203
|
-
op :=
|
|
3204
|
-
op.Subject
|
|
3417
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
3418
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
3419
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3420
|
+
return C.CString(op.Subject)
|
|
3205
3421
|
}
|
|
3206
3422
|
|
|
3207
|
-
//export
|
|
3208
|
-
func
|
|
3209
|
-
op :=
|
|
3210
|
-
|
|
3423
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
3424
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
3425
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3426
|
+
op.Subject = C.GoString(val)
|
|
3211
3427
|
}
|
|
3212
3428
|
|
|
3213
|
-
//export
|
|
3214
|
-
func
|
|
3215
|
-
op :=
|
|
3216
|
-
|
|
3429
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
3430
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
3431
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3432
|
+
return C.longlong(op.SetAt)
|
|
3217
3433
|
}
|
|
3218
3434
|
|
|
3219
|
-
//export
|
|
3220
|
-
func
|
|
3221
|
-
op :=
|
|
3222
|
-
|
|
3435
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
3436
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
3437
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3438
|
+
op.SetAt = int64(val)
|
|
3223
3439
|
}
|
|
3224
3440
|
|
|
3225
|
-
//export
|
|
3226
|
-
func
|
|
3227
|
-
op :=
|
|
3228
|
-
op.
|
|
3441
|
+
//export whatsapp_GroupSubject_SetBy_Get
|
|
3442
|
+
func whatsapp_GroupSubject_SetBy_Get(handle CGoHandle) *C.char {
|
|
3443
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3444
|
+
return C.CString(op.SetBy)
|
|
3229
3445
|
}
|
|
3230
3446
|
|
|
3231
|
-
//
|
|
3447
|
+
//export whatsapp_GroupSubject_SetBy_Set
|
|
3448
|
+
func whatsapp_GroupSubject_SetBy_Set(handle CGoHandle, val *C.char) {
|
|
3449
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
3450
|
+
op.SetBy = C.GoString(val)
|
|
3451
|
+
}
|
|
3452
|
+
|
|
3453
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3232
3454
|
//
|
|
3233
|
-
//export
|
|
3234
|
-
func
|
|
3235
|
-
return CGoHandle(
|
|
3455
|
+
//export whatsapp_Receipt_CTor
|
|
3456
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3457
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3236
3458
|
}
|
|
3237
3459
|
|
|
3238
|
-
//export
|
|
3239
|
-
func
|
|
3240
|
-
op :=
|
|
3241
|
-
return C.
|
|
3460
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3461
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3462
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3463
|
+
return C.longlong(int(op.Kind))
|
|
3242
3464
|
}
|
|
3243
3465
|
|
|
3244
|
-
//export
|
|
3245
|
-
func
|
|
3246
|
-
op :=
|
|
3247
|
-
op.
|
|
3466
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3467
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3468
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3469
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3248
3470
|
}
|
|
3249
3471
|
|
|
3250
|
-
//export
|
|
3251
|
-
func
|
|
3252
|
-
op :=
|
|
3253
|
-
return
|
|
3472
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3473
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3474
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3475
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3254
3476
|
}
|
|
3255
3477
|
|
|
3256
|
-
//export
|
|
3257
|
-
func
|
|
3258
|
-
op :=
|
|
3259
|
-
op.
|
|
3478
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3479
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3480
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3481
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3260
3482
|
}
|
|
3261
3483
|
|
|
3262
|
-
//export
|
|
3263
|
-
func
|
|
3264
|
-
op :=
|
|
3265
|
-
return C.
|
|
3484
|
+
//export whatsapp_Receipt_JID_Get
|
|
3485
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3486
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3487
|
+
return C.CString(op.JID)
|
|
3266
3488
|
}
|
|
3267
3489
|
|
|
3268
|
-
//export
|
|
3269
|
-
func
|
|
3270
|
-
op :=
|
|
3271
|
-
op.
|
|
3490
|
+
//export whatsapp_Receipt_JID_Set
|
|
3491
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3492
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3493
|
+
op.JID = C.GoString(val)
|
|
3272
3494
|
}
|
|
3273
3495
|
|
|
3274
|
-
//export
|
|
3275
|
-
func
|
|
3276
|
-
op :=
|
|
3277
|
-
return
|
|
3496
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3497
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3498
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3499
|
+
return C.CString(op.GroupJID)
|
|
3278
3500
|
}
|
|
3279
3501
|
|
|
3280
|
-
//export
|
|
3281
|
-
func
|
|
3282
|
-
op :=
|
|
3283
|
-
op.
|
|
3502
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3503
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3504
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3505
|
+
op.GroupJID = C.GoString(val)
|
|
3284
3506
|
}
|
|
3285
3507
|
|
|
3286
|
-
//export
|
|
3287
|
-
func
|
|
3288
|
-
op :=
|
|
3289
|
-
return C.
|
|
3508
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3509
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3510
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3511
|
+
return C.longlong(op.Timestamp)
|
|
3290
3512
|
}
|
|
3291
3513
|
|
|
3292
|
-
//export
|
|
3293
|
-
func
|
|
3294
|
-
op :=
|
|
3295
|
-
op.
|
|
3514
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3515
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3516
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3517
|
+
op.Timestamp = int64(val)
|
|
3296
3518
|
}
|
|
3297
3519
|
|
|
3298
|
-
//export
|
|
3299
|
-
func
|
|
3300
|
-
op :=
|
|
3301
|
-
return
|
|
3520
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3521
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3522
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3523
|
+
return boolGoToPy(op.IsCarbon)
|
|
3302
3524
|
}
|
|
3303
3525
|
|
|
3304
|
-
//export
|
|
3305
|
-
func
|
|
3306
|
-
op :=
|
|
3307
|
-
op.
|
|
3526
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3527
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3528
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3529
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3308
3530
|
}
|
|
3309
3531
|
|
|
3310
|
-
//
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3532
|
+
// --- wrapping struct: whatsapp.Album ---
|
|
3533
|
+
//
|
|
3534
|
+
//export whatsapp_Album_CTor
|
|
3535
|
+
func whatsapp_Album_CTor() CGoHandle {
|
|
3536
|
+
return CGoHandle(handleFromPtr_whatsapp_Album(&whatsapp.Album{}))
|
|
3314
3537
|
}
|
|
3315
3538
|
|
|
3316
|
-
//export
|
|
3317
|
-
func
|
|
3318
|
-
op :=
|
|
3319
|
-
op.
|
|
3539
|
+
//export whatsapp_Album_IsAlbum_Get
|
|
3540
|
+
func whatsapp_Album_IsAlbum_Get(handle CGoHandle) C.char {
|
|
3541
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3542
|
+
return boolGoToPy(op.IsAlbum)
|
|
3320
3543
|
}
|
|
3321
3544
|
|
|
3322
|
-
//
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
return CGoHandle(handleFromPtr_whatsapp_Poll(&whatsapp.Poll{}))
|
|
3545
|
+
//export whatsapp_Album_IsAlbum_Set
|
|
3546
|
+
func whatsapp_Album_IsAlbum_Set(handle CGoHandle, val C.char) {
|
|
3547
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3548
|
+
op.IsAlbum = boolPyToGo(val)
|
|
3327
3549
|
}
|
|
3328
3550
|
|
|
3329
|
-
//export
|
|
3330
|
-
func
|
|
3331
|
-
op :=
|
|
3332
|
-
return C.
|
|
3551
|
+
//export whatsapp_Album_ImageCount_Get
|
|
3552
|
+
func whatsapp_Album_ImageCount_Get(handle CGoHandle) C.longlong {
|
|
3553
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3554
|
+
return C.longlong(op.ImageCount)
|
|
3333
3555
|
}
|
|
3334
3556
|
|
|
3335
|
-
//export
|
|
3336
|
-
func
|
|
3337
|
-
op :=
|
|
3338
|
-
op.
|
|
3557
|
+
//export whatsapp_Album_ImageCount_Set
|
|
3558
|
+
func whatsapp_Album_ImageCount_Set(handle CGoHandle, val C.longlong) {
|
|
3559
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3560
|
+
op.ImageCount = int(val)
|
|
3339
3561
|
}
|
|
3340
3562
|
|
|
3341
|
-
//export
|
|
3342
|
-
func
|
|
3343
|
-
op :=
|
|
3344
|
-
return
|
|
3563
|
+
//export whatsapp_Album_VideoCount_Get
|
|
3564
|
+
func whatsapp_Album_VideoCount_Get(handle CGoHandle) C.longlong {
|
|
3565
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3566
|
+
return C.longlong(op.VideoCount)
|
|
3345
3567
|
}
|
|
3346
3568
|
|
|
3347
|
-
//export
|
|
3348
|
-
func
|
|
3349
|
-
op :=
|
|
3350
|
-
op.
|
|
3569
|
+
//export whatsapp_Album_VideoCount_Set
|
|
3570
|
+
func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
3571
|
+
op := ptrFromHandle_whatsapp_Album(handle)
|
|
3572
|
+
op.VideoCount = int(val)
|
|
3351
3573
|
}
|
|
3352
3574
|
|
|
3353
3575
|
// --- wrapping struct: whatsapp.Gateway ---
|
|
@@ -3435,276 +3657,156 @@ func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle
|
|
|
3435
3657
|
|
|
3436
3658
|
}
|
|
3437
3659
|
|
|
3438
|
-
//export whatsapp_Gateway_CleanupSession
|
|
3439
|
-
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3440
|
-
_saved_thread := C.PyEval_SaveThread()
|
|
3441
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3442
|
-
if __err != nil {
|
|
3443
|
-
return errorGoToPy(nil)
|
|
3444
|
-
}
|
|
3445
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3446
|
-
|
|
3447
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
3448
|
-
if __err != nil {
|
|
3449
|
-
estr := C.CString(__err.Error())
|
|
3450
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3451
|
-
return estr
|
|
3452
|
-
}
|
|
3453
|
-
return C.CString("")
|
|
3454
|
-
}
|
|
3455
|
-
|
|
3456
|
-
// --- wrapping struct: whatsapp.Message ---
|
|
3457
|
-
//
|
|
3458
|
-
//export whatsapp_Message_CTor
|
|
3459
|
-
func whatsapp_Message_CTor() CGoHandle {
|
|
3460
|
-
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
3461
|
-
}
|
|
3462
|
-
|
|
3463
|
-
//export whatsapp_Message_Kind_Get
|
|
3464
|
-
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
3465
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3466
|
-
return C.longlong(int(op.Kind))
|
|
3467
|
-
}
|
|
3468
|
-
|
|
3469
|
-
//export whatsapp_Message_Kind_Set
|
|
3470
|
-
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3471
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3472
|
-
op.Kind = whatsapp.MessageKind(int(val))
|
|
3473
|
-
}
|
|
3474
|
-
|
|
3475
|
-
//export whatsapp_Message_ID_Get
|
|
3476
|
-
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3477
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3478
|
-
return C.CString(op.ID)
|
|
3479
|
-
}
|
|
3480
|
-
|
|
3481
|
-
//export whatsapp_Message_ID_Set
|
|
3482
|
-
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3483
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3484
|
-
op.ID = C.GoString(val)
|
|
3485
|
-
}
|
|
3486
|
-
|
|
3487
|
-
//export whatsapp_Message_JID_Get
|
|
3488
|
-
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3489
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3490
|
-
return C.CString(op.JID)
|
|
3491
|
-
}
|
|
3492
|
-
|
|
3493
|
-
//export whatsapp_Message_JID_Set
|
|
3494
|
-
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3495
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3496
|
-
op.JID = C.GoString(val)
|
|
3497
|
-
}
|
|
3498
|
-
|
|
3499
|
-
//export whatsapp_Message_GroupJID_Get
|
|
3500
|
-
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3501
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3502
|
-
return C.CString(op.GroupJID)
|
|
3503
|
-
}
|
|
3504
|
-
|
|
3505
|
-
//export whatsapp_Message_GroupJID_Set
|
|
3506
|
-
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3507
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3508
|
-
op.GroupJID = C.GoString(val)
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
|
-
//export whatsapp_Message_OriginJID_Get
|
|
3512
|
-
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3513
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3514
|
-
return C.CString(op.OriginJID)
|
|
3515
|
-
}
|
|
3516
|
-
|
|
3517
|
-
//export whatsapp_Message_OriginJID_Set
|
|
3518
|
-
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3519
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3520
|
-
op.OriginJID = C.GoString(val)
|
|
3521
|
-
}
|
|
3522
|
-
|
|
3523
|
-
//export whatsapp_Message_Body_Get
|
|
3524
|
-
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3525
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3526
|
-
return C.CString(op.Body)
|
|
3527
|
-
}
|
|
3528
|
-
|
|
3529
|
-
//export whatsapp_Message_Body_Set
|
|
3530
|
-
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3531
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3532
|
-
op.Body = C.GoString(val)
|
|
3533
|
-
}
|
|
3534
|
-
|
|
3535
|
-
//export whatsapp_Message_Timestamp_Get
|
|
3536
|
-
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3537
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3538
|
-
return C.longlong(op.Timestamp)
|
|
3539
|
-
}
|
|
3540
|
-
|
|
3541
|
-
//export whatsapp_Message_Timestamp_Set
|
|
3542
|
-
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3543
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3544
|
-
op.Timestamp = int64(val)
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
//export whatsapp_Message_IsCarbon_Get
|
|
3548
|
-
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3549
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3550
|
-
return boolGoToPy(op.IsCarbon)
|
|
3551
|
-
}
|
|
3552
|
-
|
|
3553
|
-
//export whatsapp_Message_IsCarbon_Set
|
|
3554
|
-
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3555
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3556
|
-
op.IsCarbon = boolPyToGo(val)
|
|
3557
|
-
}
|
|
3558
|
-
|
|
3559
|
-
//export whatsapp_Message_IsForwarded_Get
|
|
3560
|
-
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3561
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3562
|
-
return boolGoToPy(op.IsForwarded)
|
|
3563
|
-
}
|
|
3564
|
-
|
|
3565
|
-
//export whatsapp_Message_IsForwarded_Set
|
|
3566
|
-
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3567
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3568
|
-
op.IsForwarded = boolPyToGo(val)
|
|
3569
|
-
}
|
|
3660
|
+
//export whatsapp_Gateway_CleanupSession
|
|
3661
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
3662
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3663
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
3664
|
+
if __err != nil {
|
|
3665
|
+
return errorGoToPy(nil)
|
|
3666
|
+
}
|
|
3667
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3570
3668
|
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3669
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
3670
|
+
if __err != nil {
|
|
3671
|
+
estr := C.CString(__err.Error())
|
|
3672
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
3673
|
+
return estr
|
|
3674
|
+
}
|
|
3675
|
+
return C.CString("")
|
|
3575
3676
|
}
|
|
3576
3677
|
|
|
3577
|
-
//
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3678
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
3679
|
+
//
|
|
3680
|
+
//export whatsapp_Group_CTor
|
|
3681
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
3682
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
3581
3683
|
}
|
|
3582
3684
|
|
|
3583
|
-
//export
|
|
3584
|
-
func
|
|
3585
|
-
op :=
|
|
3586
|
-
return C.CString(op.
|
|
3685
|
+
//export whatsapp_Group_JID_Get
|
|
3686
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
3687
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3688
|
+
return C.CString(op.JID)
|
|
3587
3689
|
}
|
|
3588
3690
|
|
|
3589
|
-
//export
|
|
3590
|
-
func
|
|
3591
|
-
op :=
|
|
3592
|
-
op.
|
|
3691
|
+
//export whatsapp_Group_JID_Set
|
|
3692
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
3693
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3694
|
+
op.JID = C.GoString(val)
|
|
3593
3695
|
}
|
|
3594
3696
|
|
|
3595
|
-
//export
|
|
3596
|
-
func
|
|
3597
|
-
op :=
|
|
3598
|
-
return
|
|
3697
|
+
//export whatsapp_Group_Name_Get
|
|
3698
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
3699
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3700
|
+
return C.CString(op.Name)
|
|
3599
3701
|
}
|
|
3600
3702
|
|
|
3601
|
-
//export
|
|
3602
|
-
func
|
|
3603
|
-
op :=
|
|
3604
|
-
op.
|
|
3703
|
+
//export whatsapp_Group_Name_Set
|
|
3704
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
3705
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3706
|
+
op.Name = C.GoString(val)
|
|
3605
3707
|
}
|
|
3606
3708
|
|
|
3607
|
-
//export
|
|
3608
|
-
func
|
|
3609
|
-
op :=
|
|
3610
|
-
return
|
|
3709
|
+
//export whatsapp_Group_Subject_Get
|
|
3710
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
3711
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3712
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
3611
3713
|
}
|
|
3612
3714
|
|
|
3613
|
-
//export
|
|
3614
|
-
func
|
|
3615
|
-
op :=
|
|
3616
|
-
op.
|
|
3715
|
+
//export whatsapp_Group_Subject_Set
|
|
3716
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
3717
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3718
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
3617
3719
|
}
|
|
3618
3720
|
|
|
3619
|
-
//export
|
|
3620
|
-
func
|
|
3621
|
-
op :=
|
|
3622
|
-
return
|
|
3721
|
+
//export whatsapp_Group_Nickname_Get
|
|
3722
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
3723
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3724
|
+
return C.CString(op.Nickname)
|
|
3623
3725
|
}
|
|
3624
3726
|
|
|
3625
|
-
//export
|
|
3626
|
-
func
|
|
3627
|
-
op :=
|
|
3628
|
-
op.
|
|
3727
|
+
//export whatsapp_Group_Nickname_Set
|
|
3728
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3729
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3730
|
+
op.Nickname = C.GoString(val)
|
|
3629
3731
|
}
|
|
3630
3732
|
|
|
3631
|
-
//export
|
|
3632
|
-
func
|
|
3633
|
-
op :=
|
|
3634
|
-
return
|
|
3733
|
+
//export whatsapp_Group_Participants_Get
|
|
3734
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
3735
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3736
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
3635
3737
|
}
|
|
3636
3738
|
|
|
3637
|
-
//export
|
|
3638
|
-
func
|
|
3639
|
-
op :=
|
|
3640
|
-
op.
|
|
3739
|
+
//export whatsapp_Group_Participants_Set
|
|
3740
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
3741
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3742
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
3641
3743
|
}
|
|
3642
3744
|
|
|
3643
|
-
//export
|
|
3644
|
-
func
|
|
3645
|
-
op :=
|
|
3646
|
-
return
|
|
3745
|
+
//export whatsapp_Group_InviteCode_Get
|
|
3746
|
+
func whatsapp_Group_InviteCode_Get(handle CGoHandle) *C.char {
|
|
3747
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3748
|
+
return C.CString(op.InviteCode)
|
|
3647
3749
|
}
|
|
3648
3750
|
|
|
3649
|
-
//export
|
|
3650
|
-
func
|
|
3651
|
-
op :=
|
|
3652
|
-
op.
|
|
3751
|
+
//export whatsapp_Group_InviteCode_Set
|
|
3752
|
+
func whatsapp_Group_InviteCode_Set(handle CGoHandle, val *C.char) {
|
|
3753
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
3754
|
+
op.InviteCode = C.GoString(val)
|
|
3653
3755
|
}
|
|
3654
3756
|
|
|
3655
|
-
//
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3757
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3758
|
+
//
|
|
3759
|
+
//export whatsapp_GroupParticipant_CTor
|
|
3760
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
3761
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
3659
3762
|
}
|
|
3660
3763
|
|
|
3661
|
-
//export
|
|
3662
|
-
func
|
|
3663
|
-
op :=
|
|
3664
|
-
op.
|
|
3764
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
3765
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
3766
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3767
|
+
return C.CString(op.JID)
|
|
3665
3768
|
}
|
|
3666
3769
|
|
|
3667
|
-
//export
|
|
3668
|
-
func
|
|
3669
|
-
op :=
|
|
3670
|
-
|
|
3770
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
3771
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
3772
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3773
|
+
op.JID = C.GoString(val)
|
|
3671
3774
|
}
|
|
3672
3775
|
|
|
3673
|
-
//export
|
|
3674
|
-
func
|
|
3675
|
-
op :=
|
|
3676
|
-
op.
|
|
3776
|
+
//export whatsapp_GroupParticipant_Nickname_Get
|
|
3777
|
+
func whatsapp_GroupParticipant_Nickname_Get(handle CGoHandle) *C.char {
|
|
3778
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3779
|
+
return C.CString(op.Nickname)
|
|
3677
3780
|
}
|
|
3678
3781
|
|
|
3679
|
-
//export
|
|
3680
|
-
func
|
|
3681
|
-
op :=
|
|
3682
|
-
|
|
3782
|
+
//export whatsapp_GroupParticipant_Nickname_Set
|
|
3783
|
+
func whatsapp_GroupParticipant_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
3784
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3785
|
+
op.Nickname = C.GoString(val)
|
|
3683
3786
|
}
|
|
3684
3787
|
|
|
3685
|
-
//export
|
|
3686
|
-
func
|
|
3687
|
-
op :=
|
|
3688
|
-
op.
|
|
3788
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
3789
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
3790
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3791
|
+
return C.longlong(int(op.Affiliation))
|
|
3689
3792
|
}
|
|
3690
3793
|
|
|
3691
|
-
//
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
return CGoHandle(handleFromPtr_whatsapp_PollOption(&whatsapp.PollOption{}))
|
|
3794
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3795
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3796
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3797
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3696
3798
|
}
|
|
3697
3799
|
|
|
3698
|
-
//export
|
|
3699
|
-
func
|
|
3700
|
-
op :=
|
|
3701
|
-
return C.
|
|
3800
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
3801
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3802
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3803
|
+
return C.longlong(int(op.Action))
|
|
3702
3804
|
}
|
|
3703
3805
|
|
|
3704
|
-
//export
|
|
3705
|
-
func
|
|
3706
|
-
op :=
|
|
3707
|
-
op.
|
|
3806
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
3807
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
3808
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3809
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
3708
3810
|
}
|
|
3709
3811
|
|
|
3710
3812
|
// --- wrapping struct: whatsapp.Avatar ---
|
|
@@ -3738,37 +3840,6 @@ func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
|
3738
3840
|
op.URL = C.GoString(val)
|
|
3739
3841
|
}
|
|
3740
3842
|
|
|
3741
|
-
// --- wrapping struct: whatsapp.Connect ---
|
|
3742
|
-
//
|
|
3743
|
-
//export whatsapp_Connect_CTor
|
|
3744
|
-
func whatsapp_Connect_CTor() CGoHandle {
|
|
3745
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
//export whatsapp_Connect_JID_Get
|
|
3749
|
-
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3750
|
-
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3751
|
-
return C.CString(op.JID)
|
|
3752
|
-
}
|
|
3753
|
-
|
|
3754
|
-
//export whatsapp_Connect_JID_Set
|
|
3755
|
-
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3756
|
-
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3757
|
-
op.JID = C.GoString(val)
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
//export whatsapp_Connect_Error_Get
|
|
3761
|
-
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3762
|
-
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3763
|
-
return C.CString(op.Error)
|
|
3764
|
-
}
|
|
3765
|
-
|
|
3766
|
-
//export whatsapp_Connect_Error_Set
|
|
3767
|
-
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3768
|
-
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3769
|
-
op.Error = C.GoString(val)
|
|
3770
|
-
}
|
|
3771
|
-
|
|
3772
3843
|
// --- wrapping struct: whatsapp.Contact ---
|
|
3773
3844
|
//
|
|
3774
3845
|
//export whatsapp_Contact_CTor
|
|
@@ -3800,6 +3871,38 @@ func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
|
3800
3871
|
op.Name = C.GoString(val)
|
|
3801
3872
|
}
|
|
3802
3873
|
|
|
3874
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
3875
|
+
//
|
|
3876
|
+
//export whatsapp_LinkedDevice_CTor
|
|
3877
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
3878
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
3879
|
+
}
|
|
3880
|
+
|
|
3881
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
3882
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
3883
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3884
|
+
return C.CString(op.ID)
|
|
3885
|
+
}
|
|
3886
|
+
|
|
3887
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
3888
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
3889
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
3890
|
+
op.ID = C.GoString(val)
|
|
3891
|
+
}
|
|
3892
|
+
|
|
3893
|
+
//export whatsapp_LinkedDevice_JID
|
|
3894
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
3895
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
3896
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
3897
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
3898
|
+
if __err != nil {
|
|
3899
|
+
return handleFromPtr_types_JID(nil)
|
|
3900
|
+
}
|
|
3901
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
3902
|
+
|
|
3903
|
+
return handleFromPtr_types_JID(&cret)
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3803
3906
|
// ---- Slices ---
|
|
3804
3907
|
|
|
3805
3908
|
// ---- Maps ---
|
|
@@ -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
|
+
}
|