slidge-whatsapp 0.2.5__cp312-cp312-manylinux_2_36_aarch64.whl → 0.2.6__cp312-cp312-manylinux_2_36_aarch64.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of slidge-whatsapp might be problematic. Click here for more details.
- slidge_whatsapp/config.py +3 -0
- slidge_whatsapp/event.go +23 -24
- slidge_whatsapp/gateway.go +13 -9
- slidge_whatsapp/gateway.py +2 -2
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.h +169 -169
- slidge_whatsapp/generated/_whatsapp.cpython-312-aarch64-linux-gnu.so +0 -0
- slidge_whatsapp/generated/build.py +135 -135
- slidge_whatsapp/generated/whatsapp.c +1455 -1455
- slidge_whatsapp/generated/whatsapp.go +737 -737
- slidge_whatsapp/generated/whatsapp.py +1038 -1038
- slidge_whatsapp/generated/whatsapp_go.h +169 -169
- slidge_whatsapp/go.mod +15 -12
- slidge_whatsapp/go.sum +41 -29
- slidge_whatsapp/media/media.go +16 -10
- slidge_whatsapp/session.go +73 -66
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn.go +4 -4
- slidge_whatsapp/vendor/github.com/ebitengine/purego/dlfcn_darwin.go +0 -5
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +3 -0
- slidge_whatsapp/vendor/github.com/ebitengine/purego/internal/fakecgo/symbols.go +40 -20
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/CHANGELOG.md +14 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/ffi.go +2 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/fun.go +10 -2
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_unix.go +1 -1
- slidge_whatsapp/vendor/github.com/jupiterrider/ffi/lib_windows.go +1 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/README.md +2 -7
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/callback.go +2 -1
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.c +8510 -5090
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3-binding.h +344 -150
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3.go +57 -23
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.c +4 -0
- slidge_whatsapp/vendor/github.com/mattn/go-sqlite3/sqlite3_opt_unlock_notify.go +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/.gitignore +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/LICENSE +202 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/README.md +4 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_gccgo.go +26 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.c +23 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.3.go +22 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.go +35 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.4.s +18 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.go +28 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_go1.5.s +44 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/goid_slow.go +24 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_gccgo_go1.8.go +17 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.23.go +38 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.5.go +57 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.6.go +43 -0
- slidge_whatsapp/vendor/github.com/petermattis/goid/runtime_go1.9.go +37 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/CONTRIBUTING.md +43 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/README.md +31 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/console.go +20 -5
- slidge_whatsapp/vendor/github.com/rs/zerolog/log/log.go +131 -0
- slidge_whatsapp/vendor/github.com/rs/zerolog/log.go +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/sampler.go +4 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/writer.go +9 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupCipher.go +17 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/GroupSessionBuilder.go +17 -7
- slidge_whatsapp/vendor/go.mau.fi/libsignal/groups/state/store/SenderKeyStore.go +4 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/chain/ChainKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/keys/identity/IdentityKey.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/libsignal/logger/DefaultLogger.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/FingerprintProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/LocalStorageProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/serialize/WhisperTextProtocol.pb.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/Session.go +41 -17
- slidge_whatsapp/vendor/go.mau.fi/libsignal/session/SessionCipher.go +64 -30
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/IdentityKeyStore.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/MessageKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/PreKeyStore.go +6 -4
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SessionStore.go +8 -6
- slidge_whatsapp/vendor/go.mau.fi/libsignal/state/store/SignedPreKeyStore.go +7 -5
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/connlog.go +257 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/database.go +309 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/iter.go +233 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/json.go +47 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/log.go +129 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/massinsert.go +164 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/queryhelper.go +137 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/reflectscan.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/transaction.go +180 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgrades.go +250 -0
- slidge_whatsapp/vendor/go.mau.fi/util/dbutil/upgradetable.go +331 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/dualerror.go +33 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exerrors/must.go +23 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/cors.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/handleerrors.go +64 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/json.go +41 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/middleware.go +30 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exhttp/networkerror.go +37 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/event.go +88 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/returnonce.go +25 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/ringbuffer.go +139 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncmap.go +94 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exsync/syncset.go +136 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/callermarshal.go +28 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/defaults.go +32 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/generics.go +45 -0
- slidge_whatsapp/vendor/go.mau.fi/util/exzerolog/writer.go +81 -0
- slidge_whatsapp/vendor/go.mau.fi/util/ptr/ptr.go +43 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/decode.go +27 -26
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/encode.go +4 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate/keys.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/appstate.go +27 -25
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/armadillomessage.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/broadcast.go +5 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/client.go +60 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/connectionevents.go +25 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download-to-file.go +45 -19
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/download.go +52 -28
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/errors.go +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/group.go +59 -29
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/internals.go +166 -146
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/keepalive.go +2 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaconn.go +5 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/mediaretry.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/message.go +270 -111
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/msgsecret.go +118 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/notification.go +67 -36
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair-code.go +7 -4
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/pair.go +42 -18
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/prekeys.go +9 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/presence.go +2 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/privacysettings.go +10 -11
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.go +354 -175
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.proto +5 -5
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.go +158 -15
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.go +29 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.go +13 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.go +344 -31
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.proto +26 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.pb.go → WACompanionReg.pb.go} +170 -84
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/{WAWebProtobufsCompanionReg.proto → WACompanionReg.proto} +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.go +173 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.go +78 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.proto +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.go +6747 -2230
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.proto +294 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.go +456 -135
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.proto +14 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.go +162 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.go +32 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.proto +1 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.go +192 -52
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.go +60 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.go +39 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.go +61 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.go +1051 -382
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.proto +32 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.go +27 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.go +59 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.go +382 -78
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.proto +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.go +555 -9
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.proto +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/receipt.go +13 -3
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/retry.go +29 -19
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/send.go +244 -73
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/sendfb.go +27 -16
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/clientpayload.go +3 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/noop.go +85 -43
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/signal.go +75 -88
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/container.go +79 -61
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/lidmap.go +186 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/store.go +291 -167
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/00-latest-schema.sql +153 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/03-message-secrets.sql +11 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/04-privacy-tokens.sql +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/05-account-jid-format.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/06-facebook-uuid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/07-account-lid.sql +2 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/08-lid-mapping.sql +5 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/09-decryption-buffer.sql +10 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrades/upgrades.go +22 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/store.go +105 -56
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/botmap.go +210 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/events/events.go +8 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/group.go +15 -6
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/jid.go +7 -8
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/types/message.go +17 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/update.go +3 -2
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/upload.go +1 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/user.go +45 -29
- slidge_whatsapp/vendor/golang.org/x/exp/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/exp/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/exp/constraints/constraints.go +54 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/guts.go +50 -0
- slidge_whatsapp/vendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/.gitignore +2 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/ciphers.go +641 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/client_conn_pool.go +311 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config.go +122 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_go124.go +61 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/config_pre_go124.go +16 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/databuffer.go +149 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/errors.go +145 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/flow.go +120 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/frame.go +1702 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/gotrack.go +170 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/encode.go +245 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/hpack.go +523 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/hpack/tables.go +403 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/http2.go +432 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/pipe.go +184 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/server.go +3350 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/timer.go +20 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/transport.go +3287 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/unencrypted.go +32 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/write.go +381 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched.go +251 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_priority.go +451 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_random.go +77 -0
- slidge_whatsapp/vendor/golang.org/x/net/http2/writesched_roundrobin.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/go118.go +13 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna10.0.0.go +769 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/idna9.0.0.go +717 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/pre_go118.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/punycode.go +217 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables10.0.0.go +4559 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables11.0.0.go +4653 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables12.0.0.go +4733 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables13.0.0.go +4959 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/tables9.0.0.go +4486 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie.go +51 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie12.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trie13.0.0.go +30 -0
- slidge_whatsapp/vendor/golang.org/x/net/idna/trieval.go +119 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
- slidge_whatsapp/vendor/golang.org/x/net/internal/httpcommon/request.go +467 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_darwin.go +148 -1
- slidge_whatsapp/vendor/golang.org/x/sys/unix/syscall_linux.go +16 -26
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +84 -0
- slidge_whatsapp/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.s +20 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/security_windows.go +44 -5
- slidge_whatsapp/vendor/golang.org/x/sys/windows/syscall_windows.go +4 -2
- slidge_whatsapp/vendor/golang.org/x/sys/windows/types_windows.go +239 -0
- slidge_whatsapp/vendor/golang.org/x/sys/windows/zsyscall_windows.go +9 -0
- slidge_whatsapp/vendor/golang.org/x/text/LICENSE +27 -0
- slidge_whatsapp/vendor/golang.org/x/text/PATENTS +22 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule.go +336 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +11 -0
- slidge_whatsapp/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +14 -0
- slidge_whatsapp/vendor/golang.org/x/text/transform/transform.go +709 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/core.go +1071 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +1815 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +1887 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +1923 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +1955 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +1781 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/composition.go +512 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/forminfo.go +279 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/input.go +109 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/iter.go +458 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/normalize.go +610 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +7657 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +7693 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +7710 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +7760 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +7637 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/transform.go +88 -0
- slidge_whatsapp/vendor/golang.org/x/text/unicode/norm/trie.go +54 -0
- 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 +3 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/genid/descriptor_gen.go +16 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/{strings_unsafe_go121.go → strings_unsafe.go} +0 -2
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/version/version.go +1 -1
- slidge_whatsapp/vendor/google.golang.org/protobuf/proto/merge.go +6 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/source_gen.go +2 -0
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/{value_unsafe_go121.go → value_unsafe.go} +0 -2
- slidge_whatsapp/vendor/modules.txt +38 -13
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/METADATA +1 -1
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/RECORD +293 -180
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/WHEEL +1 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/CNAME +0 -1
- slidge_whatsapp/vendor/github.com/rs/zerolog/_config.yml +0 -1
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waAdv/WAAdv.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloApplication/WAArmadilloApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waArmadilloXMA/WAArmadilloXMA.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCert/WACert.pb.raw +0 -23
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waChatLockSettings/WAProtobufsChatLockSettings.pb.raw +0 -7
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCommon/WACommon.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waCompanionReg/WAWebProtobufsCompanionReg.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waConsumerApplication/WAConsumerApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waDeviceCapabilities/WAProtobufsDeviceCapabilities.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waE2E/WAWebProtobufsE2E.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waHistorySync/WAWebProtobufsHistorySync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMediaTransport/WAMediaTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMmsRetry/WAMmsRetry.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgApplication/WAMsgApplication.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMsgTransport/WAMsgTransport.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waMultiDevice/WAMultiDevice.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waServerSync/WAServerSync.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waSyncAction/WASyncAction.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waUserPassword/WAProtobufsUserPassword.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waVnameCert/WAWebProtobufsVnameCert.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWa6/WAWebProtobufsWa6.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/proto/waWeb/WAWebProtobufsWeb.pb.raw +0 -0
- slidge_whatsapp/vendor/go.mau.fi/whatsmeow/store/sqlstore/upgrade.go +0 -296
- slidge_whatsapp/vendor/google.golang.org/protobuf/internal/strs/strings_unsafe_go120.go +0 -94
- slidge_whatsapp/vendor/google.golang.org/protobuf/reflect/protoreflect/value_unsafe_go120.go +0 -98
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/LICENSE +0 -0
- {slidge_whatsapp-0.2.5.dist-info → slidge_whatsapp-0.2.6.dist-info}/entry_points.txt +0 -0
|
@@ -9,7 +9,7 @@ package main
|
|
|
9
9
|
/*
|
|
10
10
|
|
|
11
11
|
#cgo CFLAGS: "-I/root/.local/share/uv/python/cpython-3.12.10-linux-aarch64-gnu/include/python3.12" -Wno-error -Wno-implicit-function-declaration -Wno-int-conversion
|
|
12
|
-
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.10-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -
|
|
12
|
+
#cgo LDFLAGS: "-L/root/.local/share/uv/python/cpython-3.12.10-linux-aarch64-gnu/lib" "-lpython3.12" -lpthread -ldl -lutil -lm
|
|
13
13
|
|
|
14
14
|
// #define Py_LIMITED_API // need full API for PyRun*
|
|
15
15
|
#include <Python.h>
|
|
@@ -2115,282 +2115,280 @@ func handleFromPtr_whatsapp_Session(p interface{}) CGoHandle {
|
|
|
2115
2115
|
|
|
2116
2116
|
// ---- Structs ---
|
|
2117
2117
|
|
|
2118
|
-
// --- wrapping struct: whatsapp.
|
|
2118
|
+
// --- wrapping struct: whatsapp.Presence ---
|
|
2119
2119
|
//
|
|
2120
|
-
//export
|
|
2121
|
-
func
|
|
2122
|
-
return CGoHandle(
|
|
2120
|
+
//export whatsapp_Presence_CTor
|
|
2121
|
+
func whatsapp_Presence_CTor() CGoHandle {
|
|
2122
|
+
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2123
2123
|
}
|
|
2124
2124
|
|
|
2125
|
-
//export
|
|
2126
|
-
func
|
|
2127
|
-
op :=
|
|
2128
|
-
return C.CString(op.
|
|
2125
|
+
//export whatsapp_Presence_JID_Get
|
|
2126
|
+
func whatsapp_Presence_JID_Get(handle CGoHandle) *C.char {
|
|
2127
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2128
|
+
return C.CString(op.JID)
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
//export
|
|
2132
|
-
func
|
|
2133
|
-
op :=
|
|
2134
|
-
op.
|
|
2131
|
+
//export whatsapp_Presence_JID_Set
|
|
2132
|
+
func whatsapp_Presence_JID_Set(handle CGoHandle, val *C.char) {
|
|
2133
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2134
|
+
op.JID = C.GoString(val)
|
|
2135
2135
|
}
|
|
2136
2136
|
|
|
2137
|
-
//export
|
|
2138
|
-
func
|
|
2139
|
-
op :=
|
|
2140
|
-
return C.longlong(op.
|
|
2137
|
+
//export whatsapp_Presence_Kind_Get
|
|
2138
|
+
func whatsapp_Presence_Kind_Get(handle CGoHandle) C.longlong {
|
|
2139
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2140
|
+
return C.longlong(int(op.Kind))
|
|
2141
2141
|
}
|
|
2142
2142
|
|
|
2143
|
-
//export
|
|
2144
|
-
func
|
|
2145
|
-
op :=
|
|
2146
|
-
op.
|
|
2143
|
+
//export whatsapp_Presence_Kind_Set
|
|
2144
|
+
func whatsapp_Presence_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2145
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2146
|
+
op.Kind = whatsapp.PresenceKind(int(val))
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
|
-
//export
|
|
2150
|
-
func
|
|
2151
|
-
op :=
|
|
2152
|
-
return C.
|
|
2149
|
+
//export whatsapp_Presence_LastSeen_Get
|
|
2150
|
+
func whatsapp_Presence_LastSeen_Get(handle CGoHandle) C.longlong {
|
|
2151
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2152
|
+
return C.longlong(op.LastSeen)
|
|
2153
2153
|
}
|
|
2154
2154
|
|
|
2155
|
-
//export
|
|
2156
|
-
func
|
|
2157
|
-
op :=
|
|
2158
|
-
op.
|
|
2155
|
+
//export whatsapp_Presence_LastSeen_Set
|
|
2156
|
+
func whatsapp_Presence_LastSeen_Set(handle CGoHandle, val C.longlong) {
|
|
2157
|
+
op := ptrFromHandle_whatsapp_Presence(handle)
|
|
2158
|
+
op.LastSeen = int64(val)
|
|
2159
2159
|
}
|
|
2160
2160
|
|
|
2161
|
-
// --- wrapping struct: whatsapp.
|
|
2161
|
+
// --- wrapping struct: whatsapp.ChatState ---
|
|
2162
2162
|
//
|
|
2163
|
-
//export
|
|
2164
|
-
func
|
|
2165
|
-
return CGoHandle(
|
|
2163
|
+
//export whatsapp_ChatState_CTor
|
|
2164
|
+
func whatsapp_ChatState_CTor() CGoHandle {
|
|
2165
|
+
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
|
-
//export
|
|
2169
|
-
func
|
|
2170
|
-
op :=
|
|
2168
|
+
//export whatsapp_ChatState_Kind_Get
|
|
2169
|
+
func whatsapp_ChatState_Kind_Get(handle CGoHandle) C.longlong {
|
|
2170
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2171
2171
|
return C.longlong(int(op.Kind))
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
|
-
//export
|
|
2175
|
-
func
|
|
2176
|
-
op :=
|
|
2177
|
-
op.Kind = whatsapp.
|
|
2178
|
-
}
|
|
2179
|
-
|
|
2180
|
-
//export whatsapp_Message_ID_Get
|
|
2181
|
-
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
2182
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2183
|
-
return C.CString(op.ID)
|
|
2184
|
-
}
|
|
2185
|
-
|
|
2186
|
-
//export whatsapp_Message_ID_Set
|
|
2187
|
-
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
2188
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2189
|
-
op.ID = C.GoString(val)
|
|
2174
|
+
//export whatsapp_ChatState_Kind_Set
|
|
2175
|
+
func whatsapp_ChatState_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2176
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2177
|
+
op.Kind = whatsapp.ChatStateKind(int(val))
|
|
2190
2178
|
}
|
|
2191
2179
|
|
|
2192
|
-
//export
|
|
2193
|
-
func
|
|
2194
|
-
op :=
|
|
2180
|
+
//export whatsapp_ChatState_JID_Get
|
|
2181
|
+
func whatsapp_ChatState_JID_Get(handle CGoHandle) *C.char {
|
|
2182
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2195
2183
|
return C.CString(op.JID)
|
|
2196
2184
|
}
|
|
2197
2185
|
|
|
2198
|
-
//export
|
|
2199
|
-
func
|
|
2200
|
-
op :=
|
|
2186
|
+
//export whatsapp_ChatState_JID_Set
|
|
2187
|
+
func whatsapp_ChatState_JID_Set(handle CGoHandle, val *C.char) {
|
|
2188
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2201
2189
|
op.JID = C.GoString(val)
|
|
2202
2190
|
}
|
|
2203
2191
|
|
|
2204
|
-
//export
|
|
2205
|
-
func
|
|
2206
|
-
op :=
|
|
2192
|
+
//export whatsapp_ChatState_GroupJID_Get
|
|
2193
|
+
func whatsapp_ChatState_GroupJID_Get(handle CGoHandle) *C.char {
|
|
2194
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2207
2195
|
return C.CString(op.GroupJID)
|
|
2208
2196
|
}
|
|
2209
2197
|
|
|
2210
|
-
//export
|
|
2211
|
-
func
|
|
2212
|
-
op :=
|
|
2198
|
+
//export whatsapp_ChatState_GroupJID_Set
|
|
2199
|
+
func whatsapp_ChatState_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
2200
|
+
op := ptrFromHandle_whatsapp_ChatState(handle)
|
|
2213
2201
|
op.GroupJID = C.GoString(val)
|
|
2214
2202
|
}
|
|
2215
2203
|
|
|
2216
|
-
//
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2204
|
+
// --- wrapping struct: whatsapp.Group ---
|
|
2205
|
+
//
|
|
2206
|
+
//export whatsapp_Group_CTor
|
|
2207
|
+
func whatsapp_Group_CTor() CGoHandle {
|
|
2208
|
+
return CGoHandle(handleFromPtr_whatsapp_Group(&whatsapp.Group{}))
|
|
2220
2209
|
}
|
|
2221
2210
|
|
|
2222
|
-
//export
|
|
2223
|
-
func
|
|
2224
|
-
op :=
|
|
2225
|
-
|
|
2211
|
+
//export whatsapp_Group_JID_Get
|
|
2212
|
+
func whatsapp_Group_JID_Get(handle CGoHandle) *C.char {
|
|
2213
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2214
|
+
return C.CString(op.JID)
|
|
2226
2215
|
}
|
|
2227
2216
|
|
|
2228
|
-
//export
|
|
2229
|
-
func
|
|
2230
|
-
op :=
|
|
2231
|
-
|
|
2217
|
+
//export whatsapp_Group_JID_Set
|
|
2218
|
+
func whatsapp_Group_JID_Set(handle CGoHandle, val *C.char) {
|
|
2219
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2220
|
+
op.JID = C.GoString(val)
|
|
2232
2221
|
}
|
|
2233
2222
|
|
|
2234
|
-
//export
|
|
2235
|
-
func
|
|
2236
|
-
op :=
|
|
2237
|
-
|
|
2223
|
+
//export whatsapp_Group_Name_Get
|
|
2224
|
+
func whatsapp_Group_Name_Get(handle CGoHandle) *C.char {
|
|
2225
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2226
|
+
return C.CString(op.Name)
|
|
2238
2227
|
}
|
|
2239
2228
|
|
|
2240
|
-
//export
|
|
2241
|
-
func
|
|
2242
|
-
op :=
|
|
2243
|
-
|
|
2229
|
+
//export whatsapp_Group_Name_Set
|
|
2230
|
+
func whatsapp_Group_Name_Set(handle CGoHandle, val *C.char) {
|
|
2231
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2232
|
+
op.Name = C.GoString(val)
|
|
2244
2233
|
}
|
|
2245
2234
|
|
|
2246
|
-
//export
|
|
2247
|
-
func
|
|
2248
|
-
op :=
|
|
2249
|
-
op.
|
|
2235
|
+
//export whatsapp_Group_Subject_Get
|
|
2236
|
+
func whatsapp_Group_Subject_Get(handle CGoHandle) CGoHandle {
|
|
2237
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2238
|
+
return handleFromPtr_whatsapp_GroupSubject(&op.Subject)
|
|
2250
2239
|
}
|
|
2251
2240
|
|
|
2252
|
-
//export
|
|
2253
|
-
func
|
|
2254
|
-
op :=
|
|
2255
|
-
|
|
2241
|
+
//export whatsapp_Group_Subject_Set
|
|
2242
|
+
func whatsapp_Group_Subject_Set(handle CGoHandle, val CGoHandle) {
|
|
2243
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2244
|
+
op.Subject = *ptrFromHandle_whatsapp_GroupSubject(val)
|
|
2256
2245
|
}
|
|
2257
2246
|
|
|
2258
|
-
//export
|
|
2259
|
-
func
|
|
2260
|
-
op :=
|
|
2261
|
-
op.
|
|
2247
|
+
//export whatsapp_Group_Nickname_Get
|
|
2248
|
+
func whatsapp_Group_Nickname_Get(handle CGoHandle) *C.char {
|
|
2249
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2250
|
+
return C.CString(op.Nickname)
|
|
2262
2251
|
}
|
|
2263
2252
|
|
|
2264
|
-
//export
|
|
2265
|
-
func
|
|
2266
|
-
op :=
|
|
2267
|
-
|
|
2253
|
+
//export whatsapp_Group_Nickname_Set
|
|
2254
|
+
func whatsapp_Group_Nickname_Set(handle CGoHandle, val *C.char) {
|
|
2255
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2256
|
+
op.Nickname = C.GoString(val)
|
|
2268
2257
|
}
|
|
2269
2258
|
|
|
2270
|
-
//export
|
|
2271
|
-
func
|
|
2272
|
-
op :=
|
|
2273
|
-
op.
|
|
2259
|
+
//export whatsapp_Group_Participants_Get
|
|
2260
|
+
func whatsapp_Group_Participants_Get(handle CGoHandle) CGoHandle {
|
|
2261
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2262
|
+
return handleFromPtr_Slice_whatsapp_GroupParticipant(&op.Participants)
|
|
2274
2263
|
}
|
|
2275
2264
|
|
|
2276
|
-
//export
|
|
2277
|
-
func
|
|
2278
|
-
op :=
|
|
2279
|
-
|
|
2265
|
+
//export whatsapp_Group_Participants_Set
|
|
2266
|
+
func whatsapp_Group_Participants_Set(handle CGoHandle, val CGoHandle) {
|
|
2267
|
+
op := ptrFromHandle_whatsapp_Group(handle)
|
|
2268
|
+
op.Participants = deptrFromHandle_Slice_whatsapp_GroupParticipant(val)
|
|
2280
2269
|
}
|
|
2281
2270
|
|
|
2282
|
-
//
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2271
|
+
// --- wrapping struct: whatsapp.LinkedDevice ---
|
|
2272
|
+
//
|
|
2273
|
+
//export whatsapp_LinkedDevice_CTor
|
|
2274
|
+
func whatsapp_LinkedDevice_CTor() CGoHandle {
|
|
2275
|
+
return CGoHandle(handleFromPtr_whatsapp_LinkedDevice(&whatsapp.LinkedDevice{}))
|
|
2286
2276
|
}
|
|
2287
2277
|
|
|
2288
|
-
//export
|
|
2289
|
-
func
|
|
2290
|
-
op :=
|
|
2291
|
-
return C.CString(op.
|
|
2278
|
+
//export whatsapp_LinkedDevice_ID_Get
|
|
2279
|
+
func whatsapp_LinkedDevice_ID_Get(handle CGoHandle) *C.char {
|
|
2280
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2281
|
+
return C.CString(op.ID)
|
|
2292
2282
|
}
|
|
2293
2283
|
|
|
2294
|
-
//export
|
|
2295
|
-
func
|
|
2296
|
-
op :=
|
|
2297
|
-
op.
|
|
2284
|
+
//export whatsapp_LinkedDevice_ID_Set
|
|
2285
|
+
func whatsapp_LinkedDevice_ID_Set(handle CGoHandle, val *C.char) {
|
|
2286
|
+
op := ptrFromHandle_whatsapp_LinkedDevice(handle)
|
|
2287
|
+
op.ID = C.GoString(val)
|
|
2298
2288
|
}
|
|
2299
2289
|
|
|
2300
|
-
//export
|
|
2301
|
-
func
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2290
|
+
//export whatsapp_LinkedDevice_JID
|
|
2291
|
+
func whatsapp_LinkedDevice_JID(_handle CGoHandle) CGoHandle {
|
|
2292
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2293
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2294
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2295
|
+
if __err != nil {
|
|
2296
|
+
return handleFromPtr_types_JID(nil)
|
|
2297
|
+
}
|
|
2298
|
+
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2305
2299
|
|
|
2306
|
-
|
|
2307
|
-
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
2308
|
-
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2309
|
-
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
2300
|
+
return handleFromPtr_types_JID(&cret)
|
|
2310
2301
|
}
|
|
2311
2302
|
|
|
2312
|
-
//
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2303
|
+
// --- wrapping struct: whatsapp.Location ---
|
|
2304
|
+
//
|
|
2305
|
+
//export whatsapp_Location_CTor
|
|
2306
|
+
func whatsapp_Location_CTor() CGoHandle {
|
|
2307
|
+
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
2316
2308
|
}
|
|
2317
2309
|
|
|
2318
|
-
//export
|
|
2319
|
-
func
|
|
2320
|
-
op :=
|
|
2321
|
-
op.
|
|
2310
|
+
//export whatsapp_Location_Latitude_Get
|
|
2311
|
+
func whatsapp_Location_Latitude_Get(handle CGoHandle) C.double {
|
|
2312
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2313
|
+
return C.double(op.Latitude)
|
|
2322
2314
|
}
|
|
2323
2315
|
|
|
2324
|
-
//export
|
|
2325
|
-
func
|
|
2326
|
-
op :=
|
|
2327
|
-
|
|
2316
|
+
//export whatsapp_Location_Latitude_Set
|
|
2317
|
+
func whatsapp_Location_Latitude_Set(handle CGoHandle, val C.double) {
|
|
2318
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2319
|
+
op.Latitude = float64(val)
|
|
2328
2320
|
}
|
|
2329
2321
|
|
|
2330
|
-
//export
|
|
2331
|
-
func
|
|
2332
|
-
op :=
|
|
2333
|
-
op.
|
|
2322
|
+
//export whatsapp_Location_Longitude_Get
|
|
2323
|
+
func whatsapp_Location_Longitude_Get(handle CGoHandle) C.double {
|
|
2324
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2325
|
+
return C.double(op.Longitude)
|
|
2334
2326
|
}
|
|
2335
2327
|
|
|
2336
|
-
//export
|
|
2337
|
-
func
|
|
2338
|
-
op :=
|
|
2339
|
-
|
|
2328
|
+
//export whatsapp_Location_Longitude_Set
|
|
2329
|
+
func whatsapp_Location_Longitude_Set(handle CGoHandle, val C.double) {
|
|
2330
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2331
|
+
op.Longitude = float64(val)
|
|
2340
2332
|
}
|
|
2341
2333
|
|
|
2342
|
-
//export
|
|
2343
|
-
func
|
|
2344
|
-
op :=
|
|
2345
|
-
op.
|
|
2334
|
+
//export whatsapp_Location_Accuracy_Get
|
|
2335
|
+
func whatsapp_Location_Accuracy_Get(handle CGoHandle) C.longlong {
|
|
2336
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2337
|
+
return C.longlong(op.Accuracy)
|
|
2346
2338
|
}
|
|
2347
2339
|
|
|
2348
|
-
//export
|
|
2349
|
-
func
|
|
2350
|
-
op :=
|
|
2351
|
-
|
|
2340
|
+
//export whatsapp_Location_Accuracy_Set
|
|
2341
|
+
func whatsapp_Location_Accuracy_Set(handle CGoHandle, val C.longlong) {
|
|
2342
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2343
|
+
op.Accuracy = int(val)
|
|
2352
2344
|
}
|
|
2353
2345
|
|
|
2354
|
-
//export
|
|
2355
|
-
func
|
|
2356
|
-
op :=
|
|
2357
|
-
op.
|
|
2346
|
+
//export whatsapp_Location_IsLive_Get
|
|
2347
|
+
func whatsapp_Location_IsLive_Get(handle CGoHandle) C.char {
|
|
2348
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2349
|
+
return boolGoToPy(op.IsLive)
|
|
2358
2350
|
}
|
|
2359
2351
|
|
|
2360
|
-
//export
|
|
2361
|
-
func
|
|
2362
|
-
op :=
|
|
2363
|
-
|
|
2352
|
+
//export whatsapp_Location_IsLive_Set
|
|
2353
|
+
func whatsapp_Location_IsLive_Set(handle CGoHandle, val C.char) {
|
|
2354
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2355
|
+
op.IsLive = boolPyToGo(val)
|
|
2364
2356
|
}
|
|
2365
2357
|
|
|
2366
|
-
//export
|
|
2367
|
-
func
|
|
2368
|
-
op :=
|
|
2369
|
-
op.
|
|
2358
|
+
//export whatsapp_Location_Name_Get
|
|
2359
|
+
func whatsapp_Location_Name_Get(handle CGoHandle) *C.char {
|
|
2360
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2361
|
+
return C.CString(op.Name)
|
|
2370
2362
|
}
|
|
2371
2363
|
|
|
2372
|
-
//export
|
|
2373
|
-
func
|
|
2374
|
-
op :=
|
|
2375
|
-
|
|
2364
|
+
//export whatsapp_Location_Name_Set
|
|
2365
|
+
func whatsapp_Location_Name_Set(handle CGoHandle, val *C.char) {
|
|
2366
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2367
|
+
op.Name = C.GoString(val)
|
|
2376
2368
|
}
|
|
2377
2369
|
|
|
2378
|
-
//export
|
|
2379
|
-
func
|
|
2380
|
-
op :=
|
|
2381
|
-
op.
|
|
2370
|
+
//export whatsapp_Location_Address_Get
|
|
2371
|
+
func whatsapp_Location_Address_Get(handle CGoHandle) *C.char {
|
|
2372
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2373
|
+
return C.CString(op.Address)
|
|
2382
2374
|
}
|
|
2383
2375
|
|
|
2384
|
-
//export
|
|
2385
|
-
func
|
|
2386
|
-
op :=
|
|
2387
|
-
|
|
2376
|
+
//export whatsapp_Location_Address_Set
|
|
2377
|
+
func whatsapp_Location_Address_Set(handle CGoHandle, val *C.char) {
|
|
2378
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2379
|
+
op.Address = C.GoString(val)
|
|
2388
2380
|
}
|
|
2389
2381
|
|
|
2390
|
-
//export
|
|
2391
|
-
func
|
|
2392
|
-
op :=
|
|
2393
|
-
op.
|
|
2382
|
+
//export whatsapp_Location_URL_Get
|
|
2383
|
+
func whatsapp_Location_URL_Get(handle CGoHandle) *C.char {
|
|
2384
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2385
|
+
return C.CString(op.URL)
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
//export whatsapp_Location_URL_Set
|
|
2389
|
+
func whatsapp_Location_URL_Set(handle CGoHandle, val *C.char) {
|
|
2390
|
+
op := ptrFromHandle_whatsapp_Location(handle)
|
|
2391
|
+
op.URL = C.GoString(val)
|
|
2394
2392
|
}
|
|
2395
2393
|
|
|
2396
2394
|
// --- wrapping struct: whatsapp.Poll ---
|
|
@@ -2424,330 +2422,408 @@ func whatsapp_Poll_Options_Set(handle CGoHandle, val CGoHandle) {
|
|
|
2424
2422
|
op.Options = deptrFromHandle_Slice_whatsapp_PollOption(val)
|
|
2425
2423
|
}
|
|
2426
2424
|
|
|
2427
|
-
// --- wrapping struct: whatsapp.
|
|
2425
|
+
// --- wrapping struct: whatsapp.Attachment ---
|
|
2428
2426
|
//
|
|
2429
|
-
//export
|
|
2430
|
-
func
|
|
2431
|
-
return CGoHandle(
|
|
2427
|
+
//export whatsapp_Attachment_CTor
|
|
2428
|
+
func whatsapp_Attachment_CTor() CGoHandle {
|
|
2429
|
+
return CGoHandle(handleFromPtr_whatsapp_Attachment(&whatsapp.Attachment{}))
|
|
2432
2430
|
}
|
|
2433
2431
|
|
|
2434
|
-
//export
|
|
2435
|
-
func
|
|
2436
|
-
op :=
|
|
2437
|
-
return C.CString(op.
|
|
2432
|
+
//export whatsapp_Attachment_MIME_Get
|
|
2433
|
+
func whatsapp_Attachment_MIME_Get(handle CGoHandle) *C.char {
|
|
2434
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2435
|
+
return C.CString(op.MIME)
|
|
2438
2436
|
}
|
|
2439
2437
|
|
|
2440
|
-
//export
|
|
2441
|
-
func
|
|
2442
|
-
op :=
|
|
2443
|
-
op.
|
|
2438
|
+
//export whatsapp_Attachment_MIME_Set
|
|
2439
|
+
func whatsapp_Attachment_MIME_Set(handle CGoHandle, val *C.char) {
|
|
2440
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2441
|
+
op.MIME = C.GoString(val)
|
|
2444
2442
|
}
|
|
2445
2443
|
|
|
2446
|
-
//export
|
|
2447
|
-
func
|
|
2448
|
-
op :=
|
|
2449
|
-
return C.CString(op.
|
|
2444
|
+
//export whatsapp_Attachment_Filename_Get
|
|
2445
|
+
func whatsapp_Attachment_Filename_Get(handle CGoHandle) *C.char {
|
|
2446
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2447
|
+
return C.CString(op.Filename)
|
|
2450
2448
|
}
|
|
2451
2449
|
|
|
2452
|
-
//export
|
|
2453
|
-
func
|
|
2454
|
-
op :=
|
|
2455
|
-
op.
|
|
2450
|
+
//export whatsapp_Attachment_Filename_Set
|
|
2451
|
+
func whatsapp_Attachment_Filename_Set(handle CGoHandle, val *C.char) {
|
|
2452
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2453
|
+
op.Filename = C.GoString(val)
|
|
2456
2454
|
}
|
|
2457
2455
|
|
|
2458
|
-
//export
|
|
2459
|
-
func
|
|
2460
|
-
op :=
|
|
2461
|
-
return
|
|
2456
|
+
//export whatsapp_Attachment_Caption_Get
|
|
2457
|
+
func whatsapp_Attachment_Caption_Get(handle CGoHandle) *C.char {
|
|
2458
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2459
|
+
return C.CString(op.Caption)
|
|
2462
2460
|
}
|
|
2463
2461
|
|
|
2464
|
-
//export
|
|
2465
|
-
func
|
|
2466
|
-
op :=
|
|
2467
|
-
op.
|
|
2462
|
+
//export whatsapp_Attachment_Caption_Set
|
|
2463
|
+
func whatsapp_Attachment_Caption_Set(handle CGoHandle, val *C.char) {
|
|
2464
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2465
|
+
op.Caption = C.GoString(val)
|
|
2468
2466
|
}
|
|
2469
2467
|
|
|
2470
|
-
//export
|
|
2471
|
-
func
|
|
2472
|
-
op :=
|
|
2473
|
-
return
|
|
2468
|
+
//export whatsapp_Attachment_Data_Get
|
|
2469
|
+
func whatsapp_Attachment_Data_Get(handle CGoHandle) CGoHandle {
|
|
2470
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2471
|
+
return handleFromPtr_Slice_byte(&op.Data)
|
|
2474
2472
|
}
|
|
2475
2473
|
|
|
2476
|
-
//export
|
|
2477
|
-
func
|
|
2478
|
-
op :=
|
|
2479
|
-
op.
|
|
2474
|
+
//export whatsapp_Attachment_Data_Set
|
|
2475
|
+
func whatsapp_Attachment_Data_Set(handle CGoHandle, val CGoHandle) {
|
|
2476
|
+
op := ptrFromHandle_whatsapp_Attachment(handle)
|
|
2477
|
+
op.Data = deptrFromHandle_Slice_byte(val)
|
|
2480
2478
|
}
|
|
2481
2479
|
|
|
2482
|
-
//export
|
|
2483
|
-
func
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2480
|
+
//export whatsapp_Attachment_GetSpec
|
|
2481
|
+
func whatsapp_Attachment_GetSpec(_handle CGoHandle, ctx CGoHandle) CGoHandle {
|
|
2482
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2483
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Attachment")
|
|
2484
|
+
if __err != nil {
|
|
2485
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2486
|
+
}
|
|
2487
|
+
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2487
2488
|
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2489
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2490
|
+
if __err != nil {
|
|
2491
|
+
estr := C.CString(__err.Error())
|
|
2492
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2493
|
+
C.free(unsafe.Pointer(estr))
|
|
2494
|
+
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2495
|
+
}
|
|
2496
|
+
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2492
2497
|
}
|
|
2493
2498
|
|
|
2494
|
-
// --- wrapping struct: whatsapp.
|
|
2499
|
+
// --- wrapping struct: whatsapp.Call ---
|
|
2495
2500
|
//
|
|
2496
|
-
//export
|
|
2497
|
-
func
|
|
2498
|
-
return CGoHandle(
|
|
2501
|
+
//export whatsapp_Call_CTor
|
|
2502
|
+
func whatsapp_Call_CTor() CGoHandle {
|
|
2503
|
+
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
2499
2504
|
}
|
|
2500
2505
|
|
|
2501
|
-
//export
|
|
2502
|
-
func
|
|
2503
|
-
op :=
|
|
2504
|
-
return C.
|
|
2506
|
+
//export whatsapp_Call_State_Get
|
|
2507
|
+
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
2508
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2509
|
+
return C.longlong(int(op.State))
|
|
2505
2510
|
}
|
|
2506
2511
|
|
|
2507
|
-
//export
|
|
2508
|
-
func
|
|
2509
|
-
op :=
|
|
2510
|
-
op.
|
|
2512
|
+
//export whatsapp_Call_State_Set
|
|
2513
|
+
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
2514
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2515
|
+
op.State = whatsapp.CallState(int(val))
|
|
2511
2516
|
}
|
|
2512
2517
|
|
|
2513
|
-
//export
|
|
2514
|
-
func
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.LinkedDevice")
|
|
2518
|
-
if __err != nil {
|
|
2519
|
-
return handleFromPtr_types_JID(nil)
|
|
2520
|
-
}
|
|
2521
|
-
cret := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.LinkedDevice{})).(*whatsapp.LinkedDevice).JID()
|
|
2522
|
-
|
|
2523
|
-
return handleFromPtr_types_JID(&cret)
|
|
2518
|
+
//export whatsapp_Call_JID_Get
|
|
2519
|
+
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
2520
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2521
|
+
return C.CString(op.JID)
|
|
2524
2522
|
}
|
|
2525
2523
|
|
|
2526
|
-
//
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
return CGoHandle(handleFromPtr_whatsapp_Presence(&whatsapp.Presence{}))
|
|
2524
|
+
//export whatsapp_Call_JID_Set
|
|
2525
|
+
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
2526
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2527
|
+
op.JID = C.GoString(val)
|
|
2531
2528
|
}
|
|
2532
2529
|
|
|
2533
|
-
//export
|
|
2534
|
-
func
|
|
2535
|
-
op :=
|
|
2536
|
-
return C.
|
|
2530
|
+
//export whatsapp_Call_Timestamp_Get
|
|
2531
|
+
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
2532
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2533
|
+
return C.longlong(op.Timestamp)
|
|
2537
2534
|
}
|
|
2538
2535
|
|
|
2539
|
-
//export
|
|
2540
|
-
func
|
|
2541
|
-
op :=
|
|
2542
|
-
op.
|
|
2536
|
+
//export whatsapp_Call_Timestamp_Set
|
|
2537
|
+
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
2538
|
+
op := ptrFromHandle_whatsapp_Call(handle)
|
|
2539
|
+
op.Timestamp = int64(val)
|
|
2543
2540
|
}
|
|
2544
2541
|
|
|
2545
|
-
//
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2542
|
+
// --- wrapping struct: whatsapp.Gateway ---
|
|
2543
|
+
//
|
|
2544
|
+
//export whatsapp_Gateway_CTor
|
|
2545
|
+
func whatsapp_Gateway_CTor() CGoHandle {
|
|
2546
|
+
return CGoHandle(handleFromPtr_whatsapp_Gateway(&whatsapp.Gateway{}))
|
|
2549
2547
|
}
|
|
2550
2548
|
|
|
2551
|
-
//export
|
|
2552
|
-
func
|
|
2553
|
-
op :=
|
|
2554
|
-
|
|
2549
|
+
//export whatsapp_Gateway_DBPath_Get
|
|
2550
|
+
func whatsapp_Gateway_DBPath_Get(handle CGoHandle) *C.char {
|
|
2551
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2552
|
+
return C.CString(op.DBPath)
|
|
2555
2553
|
}
|
|
2556
2554
|
|
|
2557
|
-
//export
|
|
2558
|
-
func
|
|
2559
|
-
op :=
|
|
2560
|
-
|
|
2555
|
+
//export whatsapp_Gateway_DBPath_Set
|
|
2556
|
+
func whatsapp_Gateway_DBPath_Set(handle CGoHandle, val *C.char) {
|
|
2557
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2558
|
+
op.DBPath = C.GoString(val)
|
|
2561
2559
|
}
|
|
2562
2560
|
|
|
2563
|
-
//export
|
|
2564
|
-
func
|
|
2565
|
-
op :=
|
|
2566
|
-
op.
|
|
2561
|
+
//export whatsapp_Gateway_Name_Get
|
|
2562
|
+
func whatsapp_Gateway_Name_Get(handle CGoHandle) *C.char {
|
|
2563
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2564
|
+
return C.CString(op.Name)
|
|
2567
2565
|
}
|
|
2568
2566
|
|
|
2569
|
-
//
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
2567
|
+
//export whatsapp_Gateway_Name_Set
|
|
2568
|
+
func whatsapp_Gateway_Name_Set(handle CGoHandle, val *C.char) {
|
|
2569
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2570
|
+
op.Name = C.GoString(val)
|
|
2574
2571
|
}
|
|
2575
2572
|
|
|
2576
|
-
//export
|
|
2577
|
-
func
|
|
2578
|
-
op :=
|
|
2579
|
-
return C.
|
|
2573
|
+
//export whatsapp_Gateway_LogLevel_Get
|
|
2574
|
+
func whatsapp_Gateway_LogLevel_Get(handle CGoHandle) *C.char {
|
|
2575
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2576
|
+
return C.CString(op.LogLevel)
|
|
2580
2577
|
}
|
|
2581
2578
|
|
|
2582
|
-
//export
|
|
2583
|
-
func
|
|
2584
|
-
op :=
|
|
2585
|
-
op.
|
|
2579
|
+
//export whatsapp_Gateway_LogLevel_Set
|
|
2580
|
+
func whatsapp_Gateway_LogLevel_Set(handle CGoHandle, val *C.char) {
|
|
2581
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2582
|
+
op.LogLevel = C.GoString(val)
|
|
2586
2583
|
}
|
|
2587
2584
|
|
|
2588
|
-
//export
|
|
2589
|
-
func
|
|
2590
|
-
op :=
|
|
2591
|
-
return
|
|
2585
|
+
//export whatsapp_Gateway_TempDir_Get
|
|
2586
|
+
func whatsapp_Gateway_TempDir_Get(handle CGoHandle) *C.char {
|
|
2587
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2588
|
+
return C.CString(op.TempDir)
|
|
2592
2589
|
}
|
|
2593
2590
|
|
|
2594
|
-
//export
|
|
2595
|
-
func
|
|
2596
|
-
op :=
|
|
2597
|
-
op.
|
|
2591
|
+
//export whatsapp_Gateway_TempDir_Set
|
|
2592
|
+
func whatsapp_Gateway_TempDir_Set(handle CGoHandle, val *C.char) {
|
|
2593
|
+
op := ptrFromHandle_whatsapp_Gateway(handle)
|
|
2594
|
+
op.TempDir = C.GoString(val)
|
|
2598
2595
|
}
|
|
2599
2596
|
|
|
2600
|
-
//export
|
|
2601
|
-
func
|
|
2602
|
-
|
|
2597
|
+
//export whatsapp_Gateway_Init
|
|
2598
|
+
func whatsapp_Gateway_Init(_handle CGoHandle) *C.char {
|
|
2599
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2600
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2601
|
+
if __err != nil {
|
|
2602
|
+
return errorGoToPy(nil)
|
|
2603
|
+
}
|
|
2604
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2605
|
+
|
|
2606
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2607
|
+
if __err != nil {
|
|
2608
|
+
estr := C.CString(__err.Error())
|
|
2609
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2610
|
+
return estr
|
|
2611
|
+
}
|
|
2612
|
+
return C.CString("")
|
|
2613
|
+
}
|
|
2614
|
+
|
|
2615
|
+
//export whatsapp_Gateway_NewSession
|
|
2616
|
+
func whatsapp_Gateway_NewSession(_handle CGoHandle, device CGoHandle) CGoHandle {
|
|
2617
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2618
|
+
defer C.PyEval_RestoreThread(_saved_thread)
|
|
2619
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2620
|
+
if __err != nil {
|
|
2621
|
+
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2622
|
+
}
|
|
2623
|
+
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
2624
|
+
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
//export whatsapp_Gateway_CleanupSession
|
|
2628
|
+
func whatsapp_Gateway_CleanupSession(_handle CGoHandle, device CGoHandle) *C.char {
|
|
2629
|
+
_saved_thread := C.PyEval_SaveThread()
|
|
2630
|
+
vifc, __err := gopyh.VarFromHandleTry((gopyh.CGoHandle)(_handle), "*whatsapp.Gateway")
|
|
2631
|
+
if __err != nil {
|
|
2632
|
+
return errorGoToPy(nil)
|
|
2633
|
+
}
|
|
2634
|
+
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
2635
|
+
|
|
2636
|
+
C.PyEval_RestoreThread(_saved_thread)
|
|
2637
|
+
if __err != nil {
|
|
2638
|
+
estr := C.CString(__err.Error())
|
|
2639
|
+
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2640
|
+
return estr
|
|
2641
|
+
}
|
|
2642
|
+
return C.CString("")
|
|
2643
|
+
}
|
|
2644
|
+
|
|
2645
|
+
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
2646
|
+
//
|
|
2647
|
+
//export whatsapp_GroupParticipant_CTor
|
|
2648
|
+
func whatsapp_GroupParticipant_CTor() CGoHandle {
|
|
2649
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupParticipant(&whatsapp.GroupParticipant{}))
|
|
2650
|
+
}
|
|
2651
|
+
|
|
2652
|
+
//export whatsapp_GroupParticipant_JID_Get
|
|
2653
|
+
func whatsapp_GroupParticipant_JID_Get(handle CGoHandle) *C.char {
|
|
2654
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2603
2655
|
return C.CString(op.JID)
|
|
2604
2656
|
}
|
|
2605
2657
|
|
|
2606
|
-
//export
|
|
2607
|
-
func
|
|
2608
|
-
op :=
|
|
2658
|
+
//export whatsapp_GroupParticipant_JID_Set
|
|
2659
|
+
func whatsapp_GroupParticipant_JID_Set(handle CGoHandle, val *C.char) {
|
|
2660
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2609
2661
|
op.JID = C.GoString(val)
|
|
2610
2662
|
}
|
|
2611
2663
|
|
|
2612
|
-
//export
|
|
2613
|
-
func
|
|
2614
|
-
op :=
|
|
2615
|
-
return C.
|
|
2664
|
+
//export whatsapp_GroupParticipant_Affiliation_Get
|
|
2665
|
+
func whatsapp_GroupParticipant_Affiliation_Get(handle CGoHandle) C.longlong {
|
|
2666
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2667
|
+
return C.longlong(int(op.Affiliation))
|
|
2616
2668
|
}
|
|
2617
2669
|
|
|
2618
|
-
//export
|
|
2619
|
-
func
|
|
2620
|
-
op :=
|
|
2621
|
-
op.
|
|
2670
|
+
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
2671
|
+
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
2672
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2673
|
+
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
2622
2674
|
}
|
|
2623
2675
|
|
|
2624
|
-
//export
|
|
2625
|
-
func
|
|
2626
|
-
op :=
|
|
2627
|
-
return C.longlong(op.
|
|
2676
|
+
//export whatsapp_GroupParticipant_Action_Get
|
|
2677
|
+
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
2678
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2679
|
+
return C.longlong(int(op.Action))
|
|
2628
2680
|
}
|
|
2629
2681
|
|
|
2630
|
-
//export
|
|
2631
|
-
func
|
|
2632
|
-
op :=
|
|
2633
|
-
op.
|
|
2682
|
+
//export whatsapp_GroupParticipant_Action_Set
|
|
2683
|
+
func whatsapp_GroupParticipant_Action_Set(handle CGoHandle, val C.longlong) {
|
|
2684
|
+
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
2685
|
+
op.Action = whatsapp.GroupParticipantAction(int(val))
|
|
2634
2686
|
}
|
|
2635
2687
|
|
|
2636
|
-
//
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2688
|
+
// --- wrapping struct: whatsapp.GroupSubject ---
|
|
2689
|
+
//
|
|
2690
|
+
//export whatsapp_GroupSubject_CTor
|
|
2691
|
+
func whatsapp_GroupSubject_CTor() CGoHandle {
|
|
2692
|
+
return CGoHandle(handleFromPtr_whatsapp_GroupSubject(&whatsapp.GroupSubject{}))
|
|
2640
2693
|
}
|
|
2641
2694
|
|
|
2642
|
-
//export
|
|
2643
|
-
func
|
|
2644
|
-
op :=
|
|
2645
|
-
op.
|
|
2695
|
+
//export whatsapp_GroupSubject_Subject_Get
|
|
2696
|
+
func whatsapp_GroupSubject_Subject_Get(handle CGoHandle) *C.char {
|
|
2697
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2698
|
+
return C.CString(op.Subject)
|
|
2646
2699
|
}
|
|
2647
2700
|
|
|
2648
|
-
//
|
|
2701
|
+
//export whatsapp_GroupSubject_Subject_Set
|
|
2702
|
+
func whatsapp_GroupSubject_Subject_Set(handle CGoHandle, val *C.char) {
|
|
2703
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2704
|
+
op.Subject = C.GoString(val)
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
//export whatsapp_GroupSubject_SetAt_Get
|
|
2708
|
+
func whatsapp_GroupSubject_SetAt_Get(handle CGoHandle) C.longlong {
|
|
2709
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2710
|
+
return C.longlong(op.SetAt)
|
|
2711
|
+
}
|
|
2712
|
+
|
|
2713
|
+
//export whatsapp_GroupSubject_SetAt_Set
|
|
2714
|
+
func whatsapp_GroupSubject_SetAt_Set(handle CGoHandle, val C.longlong) {
|
|
2715
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2716
|
+
op.SetAt = int64(val)
|
|
2717
|
+
}
|
|
2718
|
+
|
|
2719
|
+
//export whatsapp_GroupSubject_SetByJID_Get
|
|
2720
|
+
func whatsapp_GroupSubject_SetByJID_Get(handle CGoHandle) *C.char {
|
|
2721
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2722
|
+
return C.CString(op.SetByJID)
|
|
2723
|
+
}
|
|
2724
|
+
|
|
2725
|
+
//export whatsapp_GroupSubject_SetByJID_Set
|
|
2726
|
+
func whatsapp_GroupSubject_SetByJID_Set(handle CGoHandle, val *C.char) {
|
|
2727
|
+
op := ptrFromHandle_whatsapp_GroupSubject(handle)
|
|
2728
|
+
op.SetByJID = C.GoString(val)
|
|
2729
|
+
}
|
|
2730
|
+
|
|
2731
|
+
// --- wrapping struct: whatsapp.Preview ---
|
|
2649
2732
|
//
|
|
2650
|
-
//export
|
|
2651
|
-
func
|
|
2652
|
-
return CGoHandle(
|
|
2733
|
+
//export whatsapp_Preview_CTor
|
|
2734
|
+
func whatsapp_Preview_CTor() CGoHandle {
|
|
2735
|
+
return CGoHandle(handleFromPtr_whatsapp_Preview(&whatsapp.Preview{}))
|
|
2653
2736
|
}
|
|
2654
2737
|
|
|
2655
|
-
//export
|
|
2656
|
-
func
|
|
2657
|
-
op :=
|
|
2658
|
-
return C.
|
|
2738
|
+
//export whatsapp_Preview_Kind_Get
|
|
2739
|
+
func whatsapp_Preview_Kind_Get(handle CGoHandle) C.longlong {
|
|
2740
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2741
|
+
return C.longlong(int(op.Kind))
|
|
2659
2742
|
}
|
|
2660
2743
|
|
|
2661
|
-
//export
|
|
2662
|
-
func
|
|
2663
|
-
op :=
|
|
2664
|
-
op.
|
|
2744
|
+
//export whatsapp_Preview_Kind_Set
|
|
2745
|
+
func whatsapp_Preview_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
2746
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2747
|
+
op.Kind = whatsapp.PreviewKind(int(val))
|
|
2665
2748
|
}
|
|
2666
2749
|
|
|
2667
|
-
//export
|
|
2668
|
-
func
|
|
2669
|
-
op :=
|
|
2670
|
-
return C.CString(op.
|
|
2750
|
+
//export whatsapp_Preview_URL_Get
|
|
2751
|
+
func whatsapp_Preview_URL_Get(handle CGoHandle) *C.char {
|
|
2752
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2753
|
+
return C.CString(op.URL)
|
|
2671
2754
|
}
|
|
2672
2755
|
|
|
2673
|
-
//export
|
|
2674
|
-
func
|
|
2675
|
-
op :=
|
|
2676
|
-
op.
|
|
2756
|
+
//export whatsapp_Preview_URL_Set
|
|
2757
|
+
func whatsapp_Preview_URL_Set(handle CGoHandle, val *C.char) {
|
|
2758
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2759
|
+
op.URL = C.GoString(val)
|
|
2677
2760
|
}
|
|
2678
2761
|
|
|
2679
|
-
//export
|
|
2680
|
-
func
|
|
2681
|
-
op :=
|
|
2682
|
-
return C.CString(op.
|
|
2762
|
+
//export whatsapp_Preview_Title_Get
|
|
2763
|
+
func whatsapp_Preview_Title_Get(handle CGoHandle) *C.char {
|
|
2764
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2765
|
+
return C.CString(op.Title)
|
|
2683
2766
|
}
|
|
2684
2767
|
|
|
2685
|
-
//export
|
|
2686
|
-
func
|
|
2687
|
-
op :=
|
|
2688
|
-
op.
|
|
2768
|
+
//export whatsapp_Preview_Title_Set
|
|
2769
|
+
func whatsapp_Preview_Title_Set(handle CGoHandle, val *C.char) {
|
|
2770
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2771
|
+
op.Title = C.GoString(val)
|
|
2689
2772
|
}
|
|
2690
2773
|
|
|
2691
|
-
//export
|
|
2692
|
-
func
|
|
2693
|
-
op :=
|
|
2694
|
-
return
|
|
2774
|
+
//export whatsapp_Preview_Description_Get
|
|
2775
|
+
func whatsapp_Preview_Description_Get(handle CGoHandle) *C.char {
|
|
2776
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2777
|
+
return C.CString(op.Description)
|
|
2695
2778
|
}
|
|
2696
2779
|
|
|
2697
|
-
//export
|
|
2698
|
-
func
|
|
2699
|
-
op :=
|
|
2700
|
-
op.
|
|
2780
|
+
//export whatsapp_Preview_Description_Set
|
|
2781
|
+
func whatsapp_Preview_Description_Set(handle CGoHandle, val *C.char) {
|
|
2782
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2783
|
+
op.Description = C.GoString(val)
|
|
2701
2784
|
}
|
|
2702
2785
|
|
|
2703
|
-
//export
|
|
2704
|
-
func
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2709
|
-
}
|
|
2710
|
-
cret, __err := gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Attachment{})).(*whatsapp.Attachment).GetSpec(ptrFromHandle_context_Context(ctx))
|
|
2786
|
+
//export whatsapp_Preview_Thumbnail_Get
|
|
2787
|
+
func whatsapp_Preview_Thumbnail_Get(handle CGoHandle) CGoHandle {
|
|
2788
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2789
|
+
return handleFromPtr_Slice_byte(&op.Thumbnail)
|
|
2790
|
+
}
|
|
2711
2791
|
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
C.free(unsafe.Pointer(estr))
|
|
2717
|
-
return handleFromPtr_Ptr_media_Spec(nil)
|
|
2718
|
-
}
|
|
2719
|
-
return handleFromPtr_Ptr_media_Spec(cret)
|
|
2792
|
+
//export whatsapp_Preview_Thumbnail_Set
|
|
2793
|
+
func whatsapp_Preview_Thumbnail_Set(handle CGoHandle, val CGoHandle) {
|
|
2794
|
+
op := ptrFromHandle_whatsapp_Preview(handle)
|
|
2795
|
+
op.Thumbnail = deptrFromHandle_Slice_byte(val)
|
|
2720
2796
|
}
|
|
2721
2797
|
|
|
2722
|
-
// --- wrapping struct: whatsapp.
|
|
2798
|
+
// --- wrapping struct: whatsapp.Avatar ---
|
|
2723
2799
|
//
|
|
2724
|
-
//export
|
|
2725
|
-
func
|
|
2726
|
-
return CGoHandle(
|
|
2800
|
+
//export whatsapp_Avatar_CTor
|
|
2801
|
+
func whatsapp_Avatar_CTor() CGoHandle {
|
|
2802
|
+
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
2727
2803
|
}
|
|
2728
2804
|
|
|
2729
|
-
//export
|
|
2730
|
-
func
|
|
2731
|
-
op :=
|
|
2732
|
-
return C.CString(op.
|
|
2805
|
+
//export whatsapp_Avatar_ID_Get
|
|
2806
|
+
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
2807
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2808
|
+
return C.CString(op.ID)
|
|
2733
2809
|
}
|
|
2734
2810
|
|
|
2735
|
-
//export
|
|
2736
|
-
func
|
|
2737
|
-
op :=
|
|
2738
|
-
op.
|
|
2811
|
+
//export whatsapp_Avatar_ID_Set
|
|
2812
|
+
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
2813
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2814
|
+
op.ID = C.GoString(val)
|
|
2739
2815
|
}
|
|
2740
2816
|
|
|
2741
|
-
//export
|
|
2742
|
-
func
|
|
2743
|
-
op :=
|
|
2744
|
-
return C.CString(op.
|
|
2817
|
+
//export whatsapp_Avatar_URL_Get
|
|
2818
|
+
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
2819
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2820
|
+
return C.CString(op.URL)
|
|
2745
2821
|
}
|
|
2746
2822
|
|
|
2747
|
-
//export
|
|
2748
|
-
func
|
|
2749
|
-
op :=
|
|
2750
|
-
op.
|
|
2823
|
+
//export whatsapp_Avatar_URL_Set
|
|
2824
|
+
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
2825
|
+
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
2826
|
+
op.URL = C.GoString(val)
|
|
2751
2827
|
}
|
|
2752
2828
|
|
|
2753
2829
|
// --- wrapping struct: whatsapp.EventPayload ---
|
|
@@ -2877,272 +2953,270 @@ func whatsapp_EventPayload_Call_Set(handle CGoHandle, val CGoHandle) {
|
|
|
2877
2953
|
op.Call = *ptrFromHandle_whatsapp_Call(val)
|
|
2878
2954
|
}
|
|
2879
2955
|
|
|
2880
|
-
// --- wrapping struct: whatsapp.
|
|
2956
|
+
// --- wrapping struct: whatsapp.Contact ---
|
|
2881
2957
|
//
|
|
2882
|
-
//export
|
|
2883
|
-
func
|
|
2884
|
-
return CGoHandle(
|
|
2958
|
+
//export whatsapp_Contact_CTor
|
|
2959
|
+
func whatsapp_Contact_CTor() CGoHandle {
|
|
2960
|
+
return CGoHandle(handleFromPtr_whatsapp_Contact(&whatsapp.Contact{}))
|
|
2885
2961
|
}
|
|
2886
2962
|
|
|
2887
|
-
//export
|
|
2888
|
-
func
|
|
2889
|
-
op :=
|
|
2890
|
-
return C.CString(op.
|
|
2963
|
+
//export whatsapp_Contact_JID_Get
|
|
2964
|
+
func whatsapp_Contact_JID_Get(handle CGoHandle) *C.char {
|
|
2965
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2966
|
+
return C.CString(op.JID)
|
|
2891
2967
|
}
|
|
2892
2968
|
|
|
2893
|
-
//export
|
|
2894
|
-
func
|
|
2895
|
-
op :=
|
|
2896
|
-
op.
|
|
2969
|
+
//export whatsapp_Contact_JID_Set
|
|
2970
|
+
func whatsapp_Contact_JID_Set(handle CGoHandle, val *C.char) {
|
|
2971
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2972
|
+
op.JID = C.GoString(val)
|
|
2897
2973
|
}
|
|
2898
2974
|
|
|
2899
|
-
//export
|
|
2900
|
-
func
|
|
2901
|
-
op :=
|
|
2975
|
+
//export whatsapp_Contact_Name_Get
|
|
2976
|
+
func whatsapp_Contact_Name_Get(handle CGoHandle) *C.char {
|
|
2977
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2902
2978
|
return C.CString(op.Name)
|
|
2903
2979
|
}
|
|
2904
2980
|
|
|
2905
|
-
//export
|
|
2906
|
-
func
|
|
2907
|
-
op :=
|
|
2981
|
+
//export whatsapp_Contact_Name_Set
|
|
2982
|
+
func whatsapp_Contact_Name_Set(handle CGoHandle, val *C.char) {
|
|
2983
|
+
op := ptrFromHandle_whatsapp_Contact(handle)
|
|
2908
2984
|
op.Name = C.GoString(val)
|
|
2909
2985
|
}
|
|
2910
2986
|
|
|
2911
|
-
//
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2987
|
+
// --- wrapping struct: whatsapp.Message ---
|
|
2988
|
+
//
|
|
2989
|
+
//export whatsapp_Message_CTor
|
|
2990
|
+
func whatsapp_Message_CTor() CGoHandle {
|
|
2991
|
+
return CGoHandle(handleFromPtr_whatsapp_Message(&whatsapp.Message{}))
|
|
2915
2992
|
}
|
|
2916
2993
|
|
|
2917
|
-
//export
|
|
2918
|
-
func
|
|
2919
|
-
op :=
|
|
2920
|
-
|
|
2994
|
+
//export whatsapp_Message_Kind_Get
|
|
2995
|
+
func whatsapp_Message_Kind_Get(handle CGoHandle) C.longlong {
|
|
2996
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
2997
|
+
return C.longlong(int(op.Kind))
|
|
2921
2998
|
}
|
|
2922
2999
|
|
|
2923
|
-
//export
|
|
2924
|
-
func
|
|
2925
|
-
op :=
|
|
2926
|
-
|
|
3000
|
+
//export whatsapp_Message_Kind_Set
|
|
3001
|
+
func whatsapp_Message_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3002
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3003
|
+
op.Kind = whatsapp.MessageKind(int(val))
|
|
3004
|
+
}
|
|
3005
|
+
|
|
3006
|
+
//export whatsapp_Message_ID_Get
|
|
3007
|
+
func whatsapp_Message_ID_Get(handle CGoHandle) *C.char {
|
|
3008
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3009
|
+
return C.CString(op.ID)
|
|
3010
|
+
}
|
|
3011
|
+
|
|
3012
|
+
//export whatsapp_Message_ID_Set
|
|
3013
|
+
func whatsapp_Message_ID_Set(handle CGoHandle, val *C.char) {
|
|
3014
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3015
|
+
op.ID = C.GoString(val)
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
//export whatsapp_Message_JID_Get
|
|
3019
|
+
func whatsapp_Message_JID_Get(handle CGoHandle) *C.char {
|
|
3020
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3021
|
+
return C.CString(op.JID)
|
|
2927
3022
|
}
|
|
2928
3023
|
|
|
2929
|
-
//export
|
|
2930
|
-
func
|
|
2931
|
-
op :=
|
|
2932
|
-
op.
|
|
3024
|
+
//export whatsapp_Message_JID_Set
|
|
3025
|
+
func whatsapp_Message_JID_Set(handle CGoHandle, val *C.char) {
|
|
3026
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3027
|
+
op.JID = C.GoString(val)
|
|
2933
3028
|
}
|
|
2934
3029
|
|
|
2935
|
-
//export
|
|
2936
|
-
func
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
if __err != nil {
|
|
2940
|
-
return errorGoToPy(nil)
|
|
2941
|
-
}
|
|
2942
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).Init()
|
|
2943
|
-
|
|
2944
|
-
C.PyEval_RestoreThread(_saved_thread)
|
|
2945
|
-
if __err != nil {
|
|
2946
|
-
estr := C.CString(__err.Error())
|
|
2947
|
-
C.PyErr_SetString(C.PyExc_RuntimeError, estr)
|
|
2948
|
-
return estr
|
|
2949
|
-
}
|
|
2950
|
-
return C.CString("")
|
|
3030
|
+
//export whatsapp_Message_GroupJID_Get
|
|
3031
|
+
func whatsapp_Message_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3032
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3033
|
+
return C.CString(op.GroupJID)
|
|
2951
3034
|
}
|
|
2952
3035
|
|
|
2953
|
-
//export
|
|
2954
|
-
func
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
if __err != nil {
|
|
2959
|
-
return handleFromPtr_Ptr_whatsapp_Session(nil)
|
|
2960
|
-
}
|
|
2961
|
-
return handleFromPtr_Ptr_whatsapp_Session(gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).NewSession(*ptrFromHandle_whatsapp_LinkedDevice(device)))
|
|
3036
|
+
//export whatsapp_Message_GroupJID_Set
|
|
3037
|
+
func whatsapp_Message_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3038
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3039
|
+
op.GroupJID = C.GoString(val)
|
|
3040
|
+
}
|
|
2962
3041
|
|
|
3042
|
+
//export whatsapp_Message_OriginJID_Get
|
|
3043
|
+
func whatsapp_Message_OriginJID_Get(handle CGoHandle) *C.char {
|
|
3044
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3045
|
+
return C.CString(op.OriginJID)
|
|
2963
3046
|
}
|
|
2964
3047
|
|
|
2965
|
-
//export
|
|
2966
|
-
func
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
return errorGoToPy(nil)
|
|
2971
|
-
}
|
|
2972
|
-
__err = gopyh.Embed(vifc, reflect.TypeOf(whatsapp.Gateway{})).(*whatsapp.Gateway).CleanupSession(*ptrFromHandle_whatsapp_LinkedDevice(device))
|
|
3048
|
+
//export whatsapp_Message_OriginJID_Set
|
|
3049
|
+
func whatsapp_Message_OriginJID_Set(handle CGoHandle, val *C.char) {
|
|
3050
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3051
|
+
op.OriginJID = C.GoString(val)
|
|
3052
|
+
}
|
|
2973
3053
|
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
return estr
|
|
2979
|
-
}
|
|
2980
|
-
return C.CString("")
|
|
3054
|
+
//export whatsapp_Message_Body_Get
|
|
3055
|
+
func whatsapp_Message_Body_Get(handle CGoHandle) *C.char {
|
|
3056
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3057
|
+
return C.CString(op.Body)
|
|
2981
3058
|
}
|
|
2982
3059
|
|
|
2983
|
-
//
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
return CGoHandle(handleFromPtr_whatsapp_ChatState(&whatsapp.ChatState{}))
|
|
3060
|
+
//export whatsapp_Message_Body_Set
|
|
3061
|
+
func whatsapp_Message_Body_Set(handle CGoHandle, val *C.char) {
|
|
3062
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3063
|
+
op.Body = C.GoString(val)
|
|
2988
3064
|
}
|
|
2989
3065
|
|
|
2990
|
-
//export
|
|
2991
|
-
func
|
|
2992
|
-
op :=
|
|
2993
|
-
return C.longlong(
|
|
3066
|
+
//export whatsapp_Message_Timestamp_Get
|
|
3067
|
+
func whatsapp_Message_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3068
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3069
|
+
return C.longlong(op.Timestamp)
|
|
2994
3070
|
}
|
|
2995
3071
|
|
|
2996
|
-
//export
|
|
2997
|
-
func
|
|
2998
|
-
op :=
|
|
2999
|
-
op.
|
|
3072
|
+
//export whatsapp_Message_Timestamp_Set
|
|
3073
|
+
func whatsapp_Message_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3074
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3075
|
+
op.Timestamp = int64(val)
|
|
3000
3076
|
}
|
|
3001
3077
|
|
|
3002
|
-
//export
|
|
3003
|
-
func
|
|
3004
|
-
op :=
|
|
3005
|
-
return
|
|
3078
|
+
//export whatsapp_Message_IsCarbon_Get
|
|
3079
|
+
func whatsapp_Message_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3080
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3081
|
+
return boolGoToPy(op.IsCarbon)
|
|
3006
3082
|
}
|
|
3007
3083
|
|
|
3008
|
-
//export
|
|
3009
|
-
func
|
|
3010
|
-
op :=
|
|
3011
|
-
op.
|
|
3084
|
+
//export whatsapp_Message_IsCarbon_Set
|
|
3085
|
+
func whatsapp_Message_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3086
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3087
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3012
3088
|
}
|
|
3013
3089
|
|
|
3014
|
-
//export
|
|
3015
|
-
func
|
|
3016
|
-
op :=
|
|
3017
|
-
return
|
|
3090
|
+
//export whatsapp_Message_IsForwarded_Get
|
|
3091
|
+
func whatsapp_Message_IsForwarded_Get(handle CGoHandle) C.char {
|
|
3092
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3093
|
+
return boolGoToPy(op.IsForwarded)
|
|
3018
3094
|
}
|
|
3019
3095
|
|
|
3020
|
-
//export
|
|
3021
|
-
func
|
|
3022
|
-
op :=
|
|
3023
|
-
op.
|
|
3096
|
+
//export whatsapp_Message_IsForwarded_Set
|
|
3097
|
+
func whatsapp_Message_IsForwarded_Set(handle CGoHandle, val C.char) {
|
|
3098
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3099
|
+
op.IsForwarded = boolPyToGo(val)
|
|
3024
3100
|
}
|
|
3025
3101
|
|
|
3026
|
-
//
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3102
|
+
//export whatsapp_Message_ReplyID_Get
|
|
3103
|
+
func whatsapp_Message_ReplyID_Get(handle CGoHandle) *C.char {
|
|
3104
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3105
|
+
return C.CString(op.ReplyID)
|
|
3031
3106
|
}
|
|
3032
3107
|
|
|
3033
|
-
//export
|
|
3034
|
-
func
|
|
3035
|
-
op :=
|
|
3036
|
-
|
|
3108
|
+
//export whatsapp_Message_ReplyID_Set
|
|
3109
|
+
func whatsapp_Message_ReplyID_Set(handle CGoHandle, val *C.char) {
|
|
3110
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3111
|
+
op.ReplyID = C.GoString(val)
|
|
3037
3112
|
}
|
|
3038
3113
|
|
|
3039
|
-
//export
|
|
3040
|
-
func
|
|
3041
|
-
op :=
|
|
3042
|
-
|
|
3114
|
+
//export whatsapp_Message_ReplyBody_Get
|
|
3115
|
+
func whatsapp_Message_ReplyBody_Get(handle CGoHandle) *C.char {
|
|
3116
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3117
|
+
return C.CString(op.ReplyBody)
|
|
3043
3118
|
}
|
|
3044
3119
|
|
|
3045
|
-
//export
|
|
3046
|
-
func
|
|
3047
|
-
op :=
|
|
3048
|
-
|
|
3120
|
+
//export whatsapp_Message_ReplyBody_Set
|
|
3121
|
+
func whatsapp_Message_ReplyBody_Set(handle CGoHandle, val *C.char) {
|
|
3122
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3123
|
+
op.ReplyBody = C.GoString(val)
|
|
3049
3124
|
}
|
|
3050
3125
|
|
|
3051
|
-
//export
|
|
3052
|
-
func
|
|
3053
|
-
op :=
|
|
3054
|
-
op.
|
|
3126
|
+
//export whatsapp_Message_Attachments_Get
|
|
3127
|
+
func whatsapp_Message_Attachments_Get(handle CGoHandle) CGoHandle {
|
|
3128
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3129
|
+
return handleFromPtr_Slice_whatsapp_Attachment(&op.Attachments)
|
|
3055
3130
|
}
|
|
3056
3131
|
|
|
3057
|
-
//
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
return CGoHandle(handleFromPtr_whatsapp_Location(&whatsapp.Location{}))
|
|
3132
|
+
//export whatsapp_Message_Attachments_Set
|
|
3133
|
+
func whatsapp_Message_Attachments_Set(handle CGoHandle, val CGoHandle) {
|
|
3134
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3135
|
+
op.Attachments = deptrFromHandle_Slice_whatsapp_Attachment(val)
|
|
3062
3136
|
}
|
|
3063
3137
|
|
|
3064
|
-
//export
|
|
3065
|
-
func
|
|
3066
|
-
op :=
|
|
3067
|
-
return
|
|
3138
|
+
//export whatsapp_Message_Preview_Get
|
|
3139
|
+
func whatsapp_Message_Preview_Get(handle CGoHandle) CGoHandle {
|
|
3140
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3141
|
+
return handleFromPtr_whatsapp_Preview(&op.Preview)
|
|
3068
3142
|
}
|
|
3069
3143
|
|
|
3070
|
-
//export
|
|
3071
|
-
func
|
|
3072
|
-
op :=
|
|
3073
|
-
op.
|
|
3144
|
+
//export whatsapp_Message_Preview_Set
|
|
3145
|
+
func whatsapp_Message_Preview_Set(handle CGoHandle, val CGoHandle) {
|
|
3146
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3147
|
+
op.Preview = *ptrFromHandle_whatsapp_Preview(val)
|
|
3074
3148
|
}
|
|
3075
3149
|
|
|
3076
|
-
//export
|
|
3077
|
-
func
|
|
3078
|
-
op :=
|
|
3079
|
-
return
|
|
3150
|
+
//export whatsapp_Message_Location_Get
|
|
3151
|
+
func whatsapp_Message_Location_Get(handle CGoHandle) CGoHandle {
|
|
3152
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3153
|
+
return handleFromPtr_whatsapp_Location(&op.Location)
|
|
3080
3154
|
}
|
|
3081
3155
|
|
|
3082
|
-
//export
|
|
3083
|
-
func
|
|
3084
|
-
op :=
|
|
3085
|
-
op.
|
|
3156
|
+
//export whatsapp_Message_Location_Set
|
|
3157
|
+
func whatsapp_Message_Location_Set(handle CGoHandle, val CGoHandle) {
|
|
3158
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3159
|
+
op.Location = *ptrFromHandle_whatsapp_Location(val)
|
|
3086
3160
|
}
|
|
3087
3161
|
|
|
3088
|
-
//export
|
|
3089
|
-
func
|
|
3090
|
-
op :=
|
|
3091
|
-
return
|
|
3162
|
+
//export whatsapp_Message_Poll_Get
|
|
3163
|
+
func whatsapp_Message_Poll_Get(handle CGoHandle) CGoHandle {
|
|
3164
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3165
|
+
return handleFromPtr_whatsapp_Poll(&op.Poll)
|
|
3092
3166
|
}
|
|
3093
3167
|
|
|
3094
|
-
//export
|
|
3095
|
-
func
|
|
3096
|
-
op :=
|
|
3097
|
-
op.
|
|
3168
|
+
//export whatsapp_Message_Poll_Set
|
|
3169
|
+
func whatsapp_Message_Poll_Set(handle CGoHandle, val CGoHandle) {
|
|
3170
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3171
|
+
op.Poll = *ptrFromHandle_whatsapp_Poll(val)
|
|
3098
3172
|
}
|
|
3099
3173
|
|
|
3100
|
-
//export
|
|
3101
|
-
func
|
|
3102
|
-
op :=
|
|
3103
|
-
return
|
|
3174
|
+
//export whatsapp_Message_Album_Get
|
|
3175
|
+
func whatsapp_Message_Album_Get(handle CGoHandle) CGoHandle {
|
|
3176
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3177
|
+
return handleFromPtr_whatsapp_Album(&op.Album)
|
|
3104
3178
|
}
|
|
3105
3179
|
|
|
3106
|
-
//export
|
|
3107
|
-
func
|
|
3108
|
-
op :=
|
|
3109
|
-
op.
|
|
3180
|
+
//export whatsapp_Message_Album_Set
|
|
3181
|
+
func whatsapp_Message_Album_Set(handle CGoHandle, val CGoHandle) {
|
|
3182
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3183
|
+
op.Album = *ptrFromHandle_whatsapp_Album(val)
|
|
3110
3184
|
}
|
|
3111
3185
|
|
|
3112
|
-
//export
|
|
3113
|
-
func
|
|
3114
|
-
op :=
|
|
3115
|
-
return
|
|
3186
|
+
//export whatsapp_Message_MentionJIDs_Get
|
|
3187
|
+
func whatsapp_Message_MentionJIDs_Get(handle CGoHandle) CGoHandle {
|
|
3188
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3189
|
+
return handleFromPtr_Slice_string(&op.MentionJIDs)
|
|
3116
3190
|
}
|
|
3117
3191
|
|
|
3118
|
-
//export
|
|
3119
|
-
func
|
|
3120
|
-
op :=
|
|
3121
|
-
op.
|
|
3192
|
+
//export whatsapp_Message_MentionJIDs_Set
|
|
3193
|
+
func whatsapp_Message_MentionJIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3194
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3195
|
+
op.MentionJIDs = deptrFromHandle_Slice_string(val)
|
|
3122
3196
|
}
|
|
3123
3197
|
|
|
3124
|
-
//export
|
|
3125
|
-
func
|
|
3126
|
-
op :=
|
|
3127
|
-
return
|
|
3198
|
+
//export whatsapp_Message_Receipts_Get
|
|
3199
|
+
func whatsapp_Message_Receipts_Get(handle CGoHandle) CGoHandle {
|
|
3200
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3201
|
+
return handleFromPtr_Slice_whatsapp_Receipt(&op.Receipts)
|
|
3128
3202
|
}
|
|
3129
3203
|
|
|
3130
|
-
//export
|
|
3131
|
-
func
|
|
3132
|
-
op :=
|
|
3133
|
-
op.
|
|
3204
|
+
//export whatsapp_Message_Receipts_Set
|
|
3205
|
+
func whatsapp_Message_Receipts_Set(handle CGoHandle, val CGoHandle) {
|
|
3206
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3207
|
+
op.Receipts = deptrFromHandle_Slice_whatsapp_Receipt(val)
|
|
3134
3208
|
}
|
|
3135
3209
|
|
|
3136
|
-
//export
|
|
3137
|
-
func
|
|
3138
|
-
op :=
|
|
3139
|
-
return
|
|
3210
|
+
//export whatsapp_Message_Reactions_Get
|
|
3211
|
+
func whatsapp_Message_Reactions_Get(handle CGoHandle) CGoHandle {
|
|
3212
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3213
|
+
return handleFromPtr_Slice_whatsapp_Message(&op.Reactions)
|
|
3140
3214
|
}
|
|
3141
3215
|
|
|
3142
|
-
//export
|
|
3143
|
-
func
|
|
3144
|
-
op :=
|
|
3145
|
-
op.
|
|
3216
|
+
//export whatsapp_Message_Reactions_Set
|
|
3217
|
+
func whatsapp_Message_Reactions_Set(handle CGoHandle, val CGoHandle) {
|
|
3218
|
+
op := ptrFromHandle_whatsapp_Message(handle)
|
|
3219
|
+
op.Reactions = deptrFromHandle_Slice_whatsapp_Message(val)
|
|
3146
3220
|
}
|
|
3147
3221
|
|
|
3148
3222
|
// --- wrapping struct: whatsapp.PollOption ---
|
|
@@ -3164,71 +3238,83 @@ func whatsapp_PollOption_Title_Set(handle CGoHandle, val *C.char) {
|
|
|
3164
3238
|
op.Title = C.GoString(val)
|
|
3165
3239
|
}
|
|
3166
3240
|
|
|
3167
|
-
// --- wrapping struct: whatsapp.
|
|
3241
|
+
// --- wrapping struct: whatsapp.Receipt ---
|
|
3168
3242
|
//
|
|
3169
|
-
//export
|
|
3170
|
-
func
|
|
3171
|
-
return CGoHandle(
|
|
3243
|
+
//export whatsapp_Receipt_CTor
|
|
3244
|
+
func whatsapp_Receipt_CTor() CGoHandle {
|
|
3245
|
+
return CGoHandle(handleFromPtr_whatsapp_Receipt(&whatsapp.Receipt{}))
|
|
3172
3246
|
}
|
|
3173
3247
|
|
|
3174
|
-
//export
|
|
3175
|
-
func
|
|
3176
|
-
op :=
|
|
3248
|
+
//export whatsapp_Receipt_Kind_Get
|
|
3249
|
+
func whatsapp_Receipt_Kind_Get(handle CGoHandle) C.longlong {
|
|
3250
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3177
3251
|
return C.longlong(int(op.Kind))
|
|
3178
3252
|
}
|
|
3179
3253
|
|
|
3180
|
-
//export
|
|
3181
|
-
func
|
|
3182
|
-
op :=
|
|
3183
|
-
op.Kind = whatsapp.
|
|
3254
|
+
//export whatsapp_Receipt_Kind_Set
|
|
3255
|
+
func whatsapp_Receipt_Kind_Set(handle CGoHandle, val C.longlong) {
|
|
3256
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3257
|
+
op.Kind = whatsapp.ReceiptKind(int(val))
|
|
3184
3258
|
}
|
|
3185
3259
|
|
|
3186
|
-
//export
|
|
3187
|
-
func
|
|
3188
|
-
op :=
|
|
3189
|
-
return
|
|
3260
|
+
//export whatsapp_Receipt_MessageIDs_Get
|
|
3261
|
+
func whatsapp_Receipt_MessageIDs_Get(handle CGoHandle) CGoHandle {
|
|
3262
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3263
|
+
return handleFromPtr_Slice_string(&op.MessageIDs)
|
|
3190
3264
|
}
|
|
3191
3265
|
|
|
3192
|
-
//export
|
|
3193
|
-
func
|
|
3194
|
-
op :=
|
|
3195
|
-
op.
|
|
3266
|
+
//export whatsapp_Receipt_MessageIDs_Set
|
|
3267
|
+
func whatsapp_Receipt_MessageIDs_Set(handle CGoHandle, val CGoHandle) {
|
|
3268
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3269
|
+
op.MessageIDs = deptrFromHandle_Slice_string(val)
|
|
3196
3270
|
}
|
|
3197
3271
|
|
|
3198
|
-
//export
|
|
3199
|
-
func
|
|
3200
|
-
op :=
|
|
3201
|
-
return C.CString(op.
|
|
3272
|
+
//export whatsapp_Receipt_JID_Get
|
|
3273
|
+
func whatsapp_Receipt_JID_Get(handle CGoHandle) *C.char {
|
|
3274
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3275
|
+
return C.CString(op.JID)
|
|
3202
3276
|
}
|
|
3203
3277
|
|
|
3204
|
-
//export
|
|
3205
|
-
func
|
|
3206
|
-
op :=
|
|
3207
|
-
op.
|
|
3278
|
+
//export whatsapp_Receipt_JID_Set
|
|
3279
|
+
func whatsapp_Receipt_JID_Set(handle CGoHandle, val *C.char) {
|
|
3280
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3281
|
+
op.JID = C.GoString(val)
|
|
3208
3282
|
}
|
|
3209
3283
|
|
|
3210
|
-
//export
|
|
3211
|
-
func
|
|
3212
|
-
op :=
|
|
3213
|
-
return C.CString(op.
|
|
3284
|
+
//export whatsapp_Receipt_GroupJID_Get
|
|
3285
|
+
func whatsapp_Receipt_GroupJID_Get(handle CGoHandle) *C.char {
|
|
3286
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3287
|
+
return C.CString(op.GroupJID)
|
|
3214
3288
|
}
|
|
3215
3289
|
|
|
3216
|
-
//export
|
|
3217
|
-
func
|
|
3218
|
-
op :=
|
|
3219
|
-
op.
|
|
3290
|
+
//export whatsapp_Receipt_GroupJID_Set
|
|
3291
|
+
func whatsapp_Receipt_GroupJID_Set(handle CGoHandle, val *C.char) {
|
|
3292
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3293
|
+
op.GroupJID = C.GoString(val)
|
|
3220
3294
|
}
|
|
3221
3295
|
|
|
3222
|
-
//export
|
|
3223
|
-
func
|
|
3224
|
-
op :=
|
|
3225
|
-
return
|
|
3296
|
+
//export whatsapp_Receipt_Timestamp_Get
|
|
3297
|
+
func whatsapp_Receipt_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3298
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3299
|
+
return C.longlong(op.Timestamp)
|
|
3226
3300
|
}
|
|
3227
3301
|
|
|
3228
|
-
//export
|
|
3229
|
-
func
|
|
3230
|
-
op :=
|
|
3231
|
-
op.
|
|
3302
|
+
//export whatsapp_Receipt_Timestamp_Set
|
|
3303
|
+
func whatsapp_Receipt_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3304
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3305
|
+
op.Timestamp = int64(val)
|
|
3306
|
+
}
|
|
3307
|
+
|
|
3308
|
+
//export whatsapp_Receipt_IsCarbon_Get
|
|
3309
|
+
func whatsapp_Receipt_IsCarbon_Get(handle CGoHandle) C.char {
|
|
3310
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3311
|
+
return boolGoToPy(op.IsCarbon)
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
//export whatsapp_Receipt_IsCarbon_Set
|
|
3315
|
+
func whatsapp_Receipt_IsCarbon_Set(handle CGoHandle, val C.char) {
|
|
3316
|
+
op := ptrFromHandle_whatsapp_Receipt(handle)
|
|
3317
|
+
op.IsCarbon = boolPyToGo(val)
|
|
3232
3318
|
}
|
|
3233
3319
|
|
|
3234
3320
|
// --- wrapping struct: whatsapp.Session ---
|
|
@@ -3683,121 +3769,35 @@ func whatsapp_Album_VideoCount_Set(handle CGoHandle, val C.longlong) {
|
|
|
3683
3769
|
op.VideoCount = int(val)
|
|
3684
3770
|
}
|
|
3685
3771
|
|
|
3686
|
-
// --- wrapping struct: whatsapp.
|
|
3687
|
-
//
|
|
3688
|
-
//export whatsapp_Avatar_CTor
|
|
3689
|
-
func whatsapp_Avatar_CTor() CGoHandle {
|
|
3690
|
-
return CGoHandle(handleFromPtr_whatsapp_Avatar(&whatsapp.Avatar{}))
|
|
3691
|
-
}
|
|
3692
|
-
|
|
3693
|
-
//export whatsapp_Avatar_ID_Get
|
|
3694
|
-
func whatsapp_Avatar_ID_Get(handle CGoHandle) *C.char {
|
|
3695
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3696
|
-
return C.CString(op.ID)
|
|
3697
|
-
}
|
|
3698
|
-
|
|
3699
|
-
//export whatsapp_Avatar_ID_Set
|
|
3700
|
-
func whatsapp_Avatar_ID_Set(handle CGoHandle, val *C.char) {
|
|
3701
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3702
|
-
op.ID = C.GoString(val)
|
|
3703
|
-
}
|
|
3704
|
-
|
|
3705
|
-
//export whatsapp_Avatar_URL_Get
|
|
3706
|
-
func whatsapp_Avatar_URL_Get(handle CGoHandle) *C.char {
|
|
3707
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3708
|
-
return C.CString(op.URL)
|
|
3709
|
-
}
|
|
3710
|
-
|
|
3711
|
-
//export whatsapp_Avatar_URL_Set
|
|
3712
|
-
func whatsapp_Avatar_URL_Set(handle CGoHandle, val *C.char) {
|
|
3713
|
-
op := ptrFromHandle_whatsapp_Avatar(handle)
|
|
3714
|
-
op.URL = C.GoString(val)
|
|
3715
|
-
}
|
|
3716
|
-
|
|
3717
|
-
// --- wrapping struct: whatsapp.Call ---
|
|
3718
|
-
//
|
|
3719
|
-
//export whatsapp_Call_CTor
|
|
3720
|
-
func whatsapp_Call_CTor() CGoHandle {
|
|
3721
|
-
return CGoHandle(handleFromPtr_whatsapp_Call(&whatsapp.Call{}))
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
//export whatsapp_Call_State_Get
|
|
3725
|
-
func whatsapp_Call_State_Get(handle CGoHandle) C.longlong {
|
|
3726
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3727
|
-
return C.longlong(int(op.State))
|
|
3728
|
-
}
|
|
3729
|
-
|
|
3730
|
-
//export whatsapp_Call_State_Set
|
|
3731
|
-
func whatsapp_Call_State_Set(handle CGoHandle, val C.longlong) {
|
|
3732
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3733
|
-
op.State = whatsapp.CallState(int(val))
|
|
3734
|
-
}
|
|
3735
|
-
|
|
3736
|
-
//export whatsapp_Call_JID_Get
|
|
3737
|
-
func whatsapp_Call_JID_Get(handle CGoHandle) *C.char {
|
|
3738
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3739
|
-
return C.CString(op.JID)
|
|
3740
|
-
}
|
|
3741
|
-
|
|
3742
|
-
//export whatsapp_Call_JID_Set
|
|
3743
|
-
func whatsapp_Call_JID_Set(handle CGoHandle, val *C.char) {
|
|
3744
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3745
|
-
op.JID = C.GoString(val)
|
|
3746
|
-
}
|
|
3747
|
-
|
|
3748
|
-
//export whatsapp_Call_Timestamp_Get
|
|
3749
|
-
func whatsapp_Call_Timestamp_Get(handle CGoHandle) C.longlong {
|
|
3750
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3751
|
-
return C.longlong(op.Timestamp)
|
|
3752
|
-
}
|
|
3753
|
-
|
|
3754
|
-
//export whatsapp_Call_Timestamp_Set
|
|
3755
|
-
func whatsapp_Call_Timestamp_Set(handle CGoHandle, val C.longlong) {
|
|
3756
|
-
op := ptrFromHandle_whatsapp_Call(handle)
|
|
3757
|
-
op.Timestamp = int64(val)
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
// --- wrapping struct: whatsapp.GroupParticipant ---
|
|
3772
|
+
// --- wrapping struct: whatsapp.Connect ---
|
|
3761
3773
|
//
|
|
3762
|
-
//export
|
|
3763
|
-
func
|
|
3764
|
-
return CGoHandle(
|
|
3774
|
+
//export whatsapp_Connect_CTor
|
|
3775
|
+
func whatsapp_Connect_CTor() CGoHandle {
|
|
3776
|
+
return CGoHandle(handleFromPtr_whatsapp_Connect(&whatsapp.Connect{}))
|
|
3765
3777
|
}
|
|
3766
3778
|
|
|
3767
|
-
//export
|
|
3768
|
-
func
|
|
3769
|
-
op :=
|
|
3779
|
+
//export whatsapp_Connect_JID_Get
|
|
3780
|
+
func whatsapp_Connect_JID_Get(handle CGoHandle) *C.char {
|
|
3781
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3770
3782
|
return C.CString(op.JID)
|
|
3771
3783
|
}
|
|
3772
3784
|
|
|
3773
|
-
//export
|
|
3774
|
-
func
|
|
3775
|
-
op :=
|
|
3785
|
+
//export whatsapp_Connect_JID_Set
|
|
3786
|
+
func whatsapp_Connect_JID_Set(handle CGoHandle, val *C.char) {
|
|
3787
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3776
3788
|
op.JID = C.GoString(val)
|
|
3777
3789
|
}
|
|
3778
3790
|
|
|
3779
|
-
//export
|
|
3780
|
-
func
|
|
3781
|
-
op :=
|
|
3782
|
-
return C.
|
|
3783
|
-
}
|
|
3784
|
-
|
|
3785
|
-
//export whatsapp_GroupParticipant_Affiliation_Set
|
|
3786
|
-
func whatsapp_GroupParticipant_Affiliation_Set(handle CGoHandle, val C.longlong) {
|
|
3787
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3788
|
-
op.Affiliation = whatsapp.GroupAffiliation(int(val))
|
|
3789
|
-
}
|
|
3790
|
-
|
|
3791
|
-
//export whatsapp_GroupParticipant_Action_Get
|
|
3792
|
-
func whatsapp_GroupParticipant_Action_Get(handle CGoHandle) C.longlong {
|
|
3793
|
-
op := ptrFromHandle_whatsapp_GroupParticipant(handle)
|
|
3794
|
-
return C.longlong(int(op.Action))
|
|
3791
|
+
//export whatsapp_Connect_Error_Get
|
|
3792
|
+
func whatsapp_Connect_Error_Get(handle CGoHandle) *C.char {
|
|
3793
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3794
|
+
return C.CString(op.Error)
|
|
3795
3795
|
}
|
|
3796
3796
|
|
|
3797
|
-
//export
|
|
3798
|
-
func
|
|
3799
|
-
op :=
|
|
3800
|
-
op.
|
|
3797
|
+
//export whatsapp_Connect_Error_Set
|
|
3798
|
+
func whatsapp_Connect_Error_Set(handle CGoHandle, val *C.char) {
|
|
3799
|
+
op := ptrFromHandle_whatsapp_Connect(handle)
|
|
3800
|
+
op.Error = C.GoString(val)
|
|
3801
3801
|
}
|
|
3802
3802
|
|
|
3803
3803
|
// ---- Slices ---
|