This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 52
Debian packaging #17
Open
lyndalopez544
wants to merge
2
commits into
VirusTotal:master
Choose a base branch
from
lyndalopez544:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Debian packaging #17
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
sudo dpkg-buildpackage -uc -us -F | ||
rm -R debian/libvtapi-c/usr/local/lib | ||
sudo make clean |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Triggers added by dh_makeshlibs/12.1.1 | ||
activate-noawait ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0ab7728f5eea9ca175900e3e6acb5340ec2141e5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Package: libvtapi-c-dbgsym | ||
Source: libvtapi-c | ||
Version: 0.1 | ||
Auto-Built-Package: debug-symbols | ||
Architecture: amd64 | ||
Maintainer: Aurora of Earth<[email protected]> | ||
Installed-Size: 131 | ||
Depends: libvtapi-c (= 0.1) | ||
Section: debug | ||
Priority: optional | ||
Description: debug symbols for libvtapi-c | ||
Build-Ids: 0ab7728f5eea9ca175900e3e6acb5340ec2141e5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
97f665fbd148389272776f662c88ce66 usr/lib/debug/.build-id/0a/b7728f5eea9ca175900e3e6acb5340ec2141e5.debug |
Binary file added
BIN
+121 KB
...api-c/dbgsym-root/usr/lib/debug/.build-id/0a/b7728f5eea9ca175900e3e6acb5340ec2141e5.debug
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
symlink ./README.md | ||
b6f67e405acdcf1fc23705e31d2c5f7a ./configure | ||
280df9506d82ca3e485d1798483a1350 ./examples/Makefile.in | ||
b066cadcd3a1ebe350fd57d3ea0d29d6 ./examples/Makefile.am | ||
767d30e1aee50e470320da904e04277a ./examples/c/ip.c | ||
21b6f83e4e39ef5e1bb7cdd458495ec8 ./examples/c/url_dist.c | ||
325fa4b3e7c138b9e19e34085bd9258d ./examples/c/Makefile.in | ||
fbf92d610ce6176013ff5212ab1096c0 ./examples/c/search.c | ||
2502f94d9d4983a863ffbf00cecd0655 ./examples/c/url.c | ||
57a80bd686324ecd40f7de350cc024a6 ./examples/c/Makefile.am | ||
fb66f98fd4888023e18574174ba52975 ./examples/c/scan.c | ||
e8289a477673dba3eb9a67b50ab7fd00 ./examples/c/comments.c | ||
80f1c6a5e95064d0f14d3962c3e143c4 ./examples/c/file_dist.c | ||
aaa5dfdab7ea35aab16612546b30dec0 ./examples/c/domain_report.c | ||
6d10c42d896822d2090450e7ac8ffd3e ./Makefile.in | ||
2367a4baf61f8a25240ceda86cf6c9e9 ./c-vtapi.pro | ||
d7a6ad533cc5e0da4cc9718aa14d3840 ./NEWS | ||
b4b5d2153cdab7e08ada541aa13fef51 ./Makefile.am | ||
6529939861910a154e883d4085c17c46 ./configure.ac | ||
59e8e846fba4f1dc868ce074cfe2f05f ./.travis.yml | ||
74fea8184339ea97c982b2415ea30134 ./CONTRIBUTORS | ||
5346b18652b13f7b957e2e3ad6e4857d ./lib/Makefile.in | ||
2fea93158c6884f5bac4a43a31f9439a ./lib/VtFile.c | ||
41224a3df3bd742c1fff54992c492a57 ./lib/VtApiPage.h | ||
208e7be393122d10caa4300b53d97347 ./lib/VtFileDist.h | ||
e0270498422f2f898bde4107ee942e1e ./lib/VtUrl.h | ||
2fb8cf1b10fb5a7abee8d1e75fd47d11 ./lib/Makefile.am | ||
89782e64438c7954ebb89117f4166a06 ./lib/VtIpAddr.h | ||
fcf462102ef741399f1b74a558e9e127 ./lib/VtDebug.c | ||
24cbdc66fc586af0ab34294b9f1a8a8e ./lib/VtUrlDist.c | ||
86782da239f166270d0e8211628851e7 ./lib/VtUrl.c | ||
88ab45e6ec6b1f574cde777ff38db1d8 ./lib/VtApiPage.c | ||
078559159bea65a96de9f98efb6f91a7 ./lib/VtIpAddr.c | ||
5cfe5b2e411bdbbd26bcf941abf7f06a ./lib/vtcapi_common.h | ||
217a4fe97149dcfddeed64536eb91f5b ./lib/VtComments.c | ||
ea02cca85e89e1b29c2fc0068bf776c3 ./lib/VtDomain.c | ||
970632bf9e2005d89f06690428e7daa8 ./lib/VtObject.c | ||
8339d607de2c96c0b2992175c66e0dcf ./lib/VtResponse.c | ||
02f445f75bc1ff2ce204480e22d1726a ./lib/lib.pro | ||
3e5249607977db488bd97c14927205a1 ./lib/VtFileDist.c | ||
c2bc02ce3276ae2f4bc3fcd76d61f3aa ./lib/VtObject.h | ||
d6546f011add5ffb21d881375244321c ./lib/VtUrlDist.h | ||
ea1dda8194b071a218d1600730691a92 ./lib/VtFile.h | ||
6af754d16800812bab64eaea1585a07d ./lib/VtResponse.h | ||
76725e7bb0cbec8c9d0d00a3c45c1fde ./lib/VtDomain.h | ||
277e6082091bf29de92b32c4f40ba82c ./lib/VtComments.h | ||
f3189403da6193d752e6913b1c3b64eb ./lib/VtDebug.h | ||
e9006d0869ef8a3e2caa485f8156a541 ./c-vtapi_config.h.in | ||
f2766448e74c24bd1c1c5d12466093ae ./INSTALL | ||
0c3ad9c787227319d64604ad68e4b8f7 ./ChangeLog | ||
d61bde2326f7cc1a9ec5d5e81a4cce87 ./AUTHORS | ||
7159820d07db517b34a696ed875c925e ./build_deb | ||
22aa295bf5320aec7fba6756ff11058a ./m4/lt~obsolete.m4 | ||
fa2891f9060865871cbbaa1c6e2d96f4 ./m4/ltsugar.m4 | ||
7eba0509738b301eeccc0b36744fef97 ./m4/libtool.m4 | ||
db61eba6c2d924f0a36dec1d8f51e7f3 ./m4/ax_prog_doxygen.m4 | ||
064af1799febaa676203302bbf359180 ./m4/ltoptions.m4 | ||
d936fd6b2025c9b5322f826117d7f30c ./m4/ltversion.m4 | ||
1c80be294a94494b833d77b3e4d71f8d ./aminclude.am | ||
bebfa215a0ab8b5620e82c9a9af65b93 ./README | ||
dd34a25e2e3d2879316e387106a0b3f5 ./COPYING | ||
e9006d0869ef8a3e2caa485f8156a541 ./c-vtapi_config.h.in~ | ||
7d7720da1a863779983b4cd0c81c138a ./.gitignore | ||
434395632af19ccca2bb6ffec4288499 ./autom4te.cache/output.0 | ||
84be8abfc356112a1ebcfb4dc6e6c5ca ./autom4te.cache/traces.0 | ||
434395632af19ccca2bb6ffec4288499 ./autom4te.cache/output.1 | ||
cdff3149fde48ef049f0abd624f5bc92 ./autom4te.cache/traces.1 | ||
4d71670e4d848625998e3c1066c87f7a ./autom4te.cache/requests | ||
997241f8f41a247f5687b52725239592 ./aclocal.m4 | ||
bb767e42c6efa2600658e2d48cd59659 ./Doxyfile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
symlink ./README.md | ||
b6f67e405acdcf1fc23705e31d2c5f7a ./configure | ||
280df9506d82ca3e485d1798483a1350 ./examples/Makefile.in | ||
b066cadcd3a1ebe350fd57d3ea0d29d6 ./examples/Makefile.am | ||
767d30e1aee50e470320da904e04277a ./examples/c/ip.c | ||
21b6f83e4e39ef5e1bb7cdd458495ec8 ./examples/c/url_dist.c | ||
325fa4b3e7c138b9e19e34085bd9258d ./examples/c/Makefile.in | ||
fbf92d610ce6176013ff5212ab1096c0 ./examples/c/search.c | ||
2502f94d9d4983a863ffbf00cecd0655 ./examples/c/url.c | ||
57a80bd686324ecd40f7de350cc024a6 ./examples/c/Makefile.am | ||
fb66f98fd4888023e18574174ba52975 ./examples/c/scan.c | ||
e8289a477673dba3eb9a67b50ab7fd00 ./examples/c/comments.c | ||
80f1c6a5e95064d0f14d3962c3e143c4 ./examples/c/file_dist.c | ||
aaa5dfdab7ea35aab16612546b30dec0 ./examples/c/domain_report.c | ||
6d10c42d896822d2090450e7ac8ffd3e ./Makefile.in | ||
2367a4baf61f8a25240ceda86cf6c9e9 ./c-vtapi.pro | ||
d7a6ad533cc5e0da4cc9718aa14d3840 ./NEWS | ||
b4b5d2153cdab7e08ada541aa13fef51 ./Makefile.am | ||
6529939861910a154e883d4085c17c46 ./configure.ac | ||
59e8e846fba4f1dc868ce074cfe2f05f ./.travis.yml | ||
74fea8184339ea97c982b2415ea30134 ./CONTRIBUTORS | ||
5346b18652b13f7b957e2e3ad6e4857d ./lib/Makefile.in | ||
2fea93158c6884f5bac4a43a31f9439a ./lib/VtFile.c | ||
41224a3df3bd742c1fff54992c492a57 ./lib/VtApiPage.h | ||
208e7be393122d10caa4300b53d97347 ./lib/VtFileDist.h | ||
e0270498422f2f898bde4107ee942e1e ./lib/VtUrl.h | ||
2fb8cf1b10fb5a7abee8d1e75fd47d11 ./lib/Makefile.am | ||
89782e64438c7954ebb89117f4166a06 ./lib/VtIpAddr.h | ||
fcf462102ef741399f1b74a558e9e127 ./lib/VtDebug.c | ||
24cbdc66fc586af0ab34294b9f1a8a8e ./lib/VtUrlDist.c | ||
86782da239f166270d0e8211628851e7 ./lib/VtUrl.c | ||
88ab45e6ec6b1f574cde777ff38db1d8 ./lib/VtApiPage.c | ||
078559159bea65a96de9f98efb6f91a7 ./lib/VtIpAddr.c | ||
5cfe5b2e411bdbbd26bcf941abf7f06a ./lib/vtcapi_common.h | ||
217a4fe97149dcfddeed64536eb91f5b ./lib/VtComments.c | ||
ea02cca85e89e1b29c2fc0068bf776c3 ./lib/VtDomain.c | ||
970632bf9e2005d89f06690428e7daa8 ./lib/VtObject.c | ||
8339d607de2c96c0b2992175c66e0dcf ./lib/VtResponse.c | ||
02f445f75bc1ff2ce204480e22d1726a ./lib/lib.pro | ||
3e5249607977db488bd97c14927205a1 ./lib/VtFileDist.c | ||
c2bc02ce3276ae2f4bc3fcd76d61f3aa ./lib/VtObject.h | ||
d6546f011add5ffb21d881375244321c ./lib/VtUrlDist.h | ||
ea1dda8194b071a218d1600730691a92 ./lib/VtFile.h | ||
6af754d16800812bab64eaea1585a07d ./lib/VtResponse.h | ||
76725e7bb0cbec8c9d0d00a3c45c1fde ./lib/VtDomain.h | ||
277e6082091bf29de92b32c4f40ba82c ./lib/VtComments.h | ||
f3189403da6193d752e6913b1c3b64eb ./lib/VtDebug.h | ||
e9006d0869ef8a3e2caa485f8156a541 ./c-vtapi_config.h.in | ||
f2766448e74c24bd1c1c5d12466093ae ./INSTALL | ||
0c3ad9c787227319d64604ad68e4b8f7 ./ChangeLog | ||
d61bde2326f7cc1a9ec5d5e81a4cce87 ./AUTHORS | ||
7159820d07db517b34a696ed875c925e ./build_deb | ||
22aa295bf5320aec7fba6756ff11058a ./m4/lt~obsolete.m4 | ||
fa2891f9060865871cbbaa1c6e2d96f4 ./m4/ltsugar.m4 | ||
7eba0509738b301eeccc0b36744fef97 ./m4/libtool.m4 | ||
db61eba6c2d924f0a36dec1d8f51e7f3 ./m4/ax_prog_doxygen.m4 | ||
064af1799febaa676203302bbf359180 ./m4/ltoptions.m4 | ||
d936fd6b2025c9b5322f826117d7f30c ./m4/ltversion.m4 | ||
1c80be294a94494b833d77b3e4d71f8d ./aminclude.am | ||
bebfa215a0ab8b5620e82c9a9af65b93 ./README | ||
dd34a25e2e3d2879316e387106a0b3f5 ./COPYING | ||
7d7720da1a863779983b4cd0c81c138a ./.gitignore | ||
997241f8f41a247f5687b52725239592 ./aclocal.m4 | ||
bb767e42c6efa2600658e2d48cd59659 ./Doxyfile.in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
libvtapi-c (0.1) experimental; urgency=medium | ||
|
||
* Initial release | ||
|
||
-- Aurora of Earth <[email protected]> Tue, 09 Jul 2019 19:54:00 +0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Source: libvtapi-c | ||
Section: security | ||
Priority: standard | ||
Maintainer: Aurora of Earth<[email protected]> | ||
Build-Depends: automake, doxygen, autoconf, libtool, libjansson-dev, libcurl4-openssl-dev, make, debhelper | ||
Homepage: https://github.com/VirusTotal/c-vtapi | ||
Vcs-Browser: https://github.com/VirusTotal/c-vtapi | ||
Vcs-Git: https://github.com/VirusTotal/c-vtapi.git | ||
|
||
Package: libvtapi-c | ||
Architecture: any | ||
Depends: libc6 | ||
Description: Official VirusTotal C library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Copyright 2014 VirusTotal S.L. All rights reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libvtapi-c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
libvtapi-c-dbgsym_0.1_amd64.deb debug optional automatic=yes | ||
libvtapi-c_0.1_amd64.buildinfo security standard | ||
libvtapi-c_0.1_amd64.deb security standard |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
shlibs:Depends=libc6 (>= 2.4), libcurl4 (>= 7.16.2), libjansson4 (>= 2.0.1) | ||
misc:Depends= | ||
misc:Pre-Depends= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: libvtapi-c | ||
Version: 0.1 | ||
Architecture: amd64 | ||
Maintainer: Aurora of Earth<[email protected]> | ||
Installed-Size: 232 | ||
Depends: libc6 | ||
Section: security | ||
Priority: standard | ||
Homepage: https://github.com/VirusTotal/c-vtapi | ||
Description: Official VirusTotal C library |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
41224a3df3bd742c1fff54992c492a57 usr/include/VtApiPage.h | ||
277e6082091bf29de92b32c4f40ba82c usr/include/VtComments.h | ||
76725e7bb0cbec8c9d0d00a3c45c1fde usr/include/VtDomain.h | ||
ea1dda8194b071a218d1600730691a92 usr/include/VtFile.h | ||
208e7be393122d10caa4300b53d97347 usr/include/VtFileDist.h | ||
89782e64438c7954ebb89117f4166a06 usr/include/VtIpAddr.h | ||
6af754d16800812bab64eaea1585a07d usr/include/VtResponse.h | ||
e0270498422f2f898bde4107ee942e1e usr/include/VtUrl.h | ||
d6546f011add5ffb21d881375244321c usr/include/VtUrlDist.h | ||
5e63c5e4fa8db02a0241caefa691a1d0 usr/lib/x86_64-linux-gnu/libcvtapi.a | ||
0b4545e5df10a772a9f83fd743942372 usr/lib/x86_64-linux-gnu/libcvtapi.la | ||
521a23eb783fc35b3e7ca9922107fcb9 usr/lib/x86_64-linux-gnu/libcvtapi.so.1.0.0 | ||
e0c189c3d9663809ae854d812b7426f3 usr/share/doc/libvtapi-c/changelog.gz | ||
dd34a25e2e3d2879316e387106a0b3f5 usr/share/doc/libvtapi-c/copyright |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libcvtapi 1 libvtapi-c (>= 0.1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Triggers added by dh_makeshlibs/12.1.1 | ||
activate-noawait ldconfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
/* | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this whole file duplicated? Why not use the main source files? |
||
C o*pyright 2014 VirusTotal S.L. All rights reserved. | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
#ifndef VT_API_PAGE_H | ||
#define VT_API_PAGE_H 1 | ||
|
||
#ifdef __cplusplus | ||
|
||
class VpPageHandler_ops; | ||
extern "C" { | ||
#endif | ||
|
||
#include <stdbool.h> | ||
|
||
#include "VtObject.h" | ||
|
||
|
||
/** | ||
* @ingroup VtObject | ||
* @defgroup VtApiPage VtApiPage object for other API interfaces to inherit | ||
* @{ | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* Common Page Handler Header | ||
* This macro must be included as first member in every object, | ||
* that inherits this VtApiPage | ||
*/ | ||
#define API_OBJECT_COMMON \ | ||
VT_OBJECT_COMMON; \ | ||
struct VpPageHandler_ops *ph_ops;\ | ||
char *buffer; \ | ||
unsigned int buffer_size; \ | ||
struct VtResponse *response; \ | ||
char *api_key | ||
|
||
|
||
|
||
struct Session; | ||
|
||
|
||
/** | ||
* @struct VtApiPage | ||
* @brief A generic filter object that other more specialized handler objects will inherit. | ||
* @brief This will give us a kind of polymorphism. | ||
*/ | ||
struct VtApiPage { | ||
API_OBJECT_COMMON; | ||
|
||
}; | ||
|
||
struct VtApiPage_ops { | ||
struct VtObject_ops *obj_ops; /// Parent Ops | ||
|
||
}; | ||
|
||
/** | ||
* @brief Destructor. This is only used internally not for use by users. | ||
* | ||
* @param obj object to be freed | ||
* @return int. O for OK | ||
*/ | ||
int VtApiPage_destructor(struct VtObject *obj); | ||
|
||
struct VtApiPage* VtApiPage_alloc(struct VtApiPage_ops *ops); | ||
|
||
struct VtApiPage* VtApiPage_new(void); | ||
|
||
|
||
/** | ||
* @brief Relase a reference counter. If reaches 0, object freed | ||
* | ||
* @param Pointer to object pointer | ||
* @return void | ||
*/ | ||
void VtApiPage_put(struct VtApiPage **); | ||
|
||
|
||
/** | ||
* @brief Get a reference counter | ||
* | ||
* @param API object pointer | ||
* @return void | ||
*/ | ||
void VtApiPage_get(struct VtApiPage *); | ||
|
||
/** | ||
* @brief Set the API key | ||
* | ||
* @param api object | ||
* @param key API KEY | ||
* @return void | ||
*/ | ||
void VtApiPage_setApiKey(struct VtApiPage *api, const char *key); | ||
|
||
/** | ||
* @brief Common callback for curl library. Different functions within this libary use this. | ||
* | ||
* @param ptr pointer to data from curl | ||
* @param size ... | ||
* @param nmemb ... | ||
* @param userdata must be struct VtApiPage | ||
* @return size_t | ||
*/ | ||
size_t __VtApiPage_WriteCb( char *ptr, size_t size, size_t nmemb, void *userdata); | ||
|
||
/** | ||
* @brief Reset receive buffers | ||
* | ||
* @param api pointer to object | ||
* @return void | ||
*/ | ||
void VtApiPage_resetBuffer(struct VtApiPage *api); | ||
|
||
|
||
/** @} */ | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif /*cplusplus*/ | ||
|
||
#endif |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this file is generated at build time, it should not be included.