File: VtIpAddr.h

package info (click to toggle)
c-vtapi 0.0~git20230329.226eda8-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 464 kB
  • sloc: ansic: 3,924; makefile: 66
file content (96 lines) | stat: -rw-r--r-- 1,845 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
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.
*/

#ifndef VT_IP_ADDR_H
#define VT_IP_ADDR_H 1

#ifdef  __cplusplus
extern "C" {
#endif

struct VtIpAddr;
struct VtResponse;

/**
* @ingroup VtApiPage
* @defgroup VtIpAddr  VtIpAddr object for getting reports on IP addresses.
* @{
*/


/**
 * @brief Create new Object
 *
 * @return VtIpAddr object pointer. or null on erro
 */
struct VtIpAddr* VtIpAddr_new(void);


/**
 * @brief Get a reference counter
 *
 * @param obj VtIpAddr object
 * @return void
 */
void VtIpAddr_get(struct VtIpAddr *obj);


/**
 * @brief Put a reference counter
 *
 * @param obj ...
 * @return void
 */
void VtIpAddr_put(struct VtIpAddr **obj);

/**
 * @brief Set API KEY
 *
 * @param vt_ip_addr ...
 * @param api_key Your API Kety
 * @return void
 */
void VtIpAddr_setApiKey(struct VtIpAddr *vt_ip_addr, const char *api_key);



/**
 * @brief Get the respose object
 *
 * @param vt_ip_addr VtIpAddr object
 * @return VtResponse*
 */
struct VtResponse * VtIpAddr_getResponse(struct VtIpAddr *vt_ip_addr);

/**
 * @brief Get the report on a IP address
 *
 * @param vt_ip_addr ...
 * @param ip_addr_str ...
 * @return int.  0 for OK, or error code
 */
int VtIpAddr_report(struct VtIpAddr *vt_ip_addr, const char *ip_addr_str);


/**
*  @}
*/

#ifdef  __cplusplus
}
#endif /*cplusplus*/

#endif