mirror of https://gitee.com/openkylin/docs.git
更新翻译
Signed-off-by: jlspcdd1227dd <12046126+jlspcdd1227dd@user.noreply.gitee.com>
This commit is contained in:
parent
6693c7f7b5
commit
441b7e571d
|
@ -279,7 +279,7 @@ $ sudo apt-get install libkysdk-hardware libkysdk-hardware-dev
|
|||
|--------|------|-------------------------------------|-----------------------------------------------------------------------|
|
||||
| Get network card information | C | extern char** kdk_nc_get_cardlist() | Get all network cards in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char** A list of network card names, ending with a NULL string; generated by alloc and needs to be recycled by kdk_nc_freeall; if an error occurs, return NULL; |
|
||||
| | | none | char** A list of network card names, ending with a NULL string; generated by alloc and needs to be recycled by kdk_nc_freeall; if an error occurs, return NULL; |
|
||||
|
||||
|
||||
Check whether the specified network card is in UP state
|
||||
|
@ -299,7 +299,7 @@ $ sudo apt-get install libkysdk-hardware libkysdk-hardware-dev
|
|||
|--------|------|------------------------------------|-----------------------------------------------------------------------|
|
||||
| Get network card information | C | extern char** kdk_nc_get_upcards() | Get the list of network cards currently in link up state in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char** A list of network card names, ending with a NULL string; generated by alloc and needs to be recycled by kdk_nc_freeall; if an error occurs, return NULL; |
|
||||
| | | none | char** A list of network card names, ending with a NULL string; generated by alloc and needs to be recycled by kdk_nc_freeall; if an error occurs, return NULL; |
|
||||
|
||||
|
||||
|
||||
|
@ -378,7 +378,7 @@ $ sudo apt-get install libkysdk-hardware libkysdk-hardware-dev
|
|||
|--------|------|-----------------------------------------------|---------|
|
||||
| Get network card information | C | extern inline void kdk_nc_freeall(char **ptr) | list of recycled strings |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | ptr:list of strings | 无 |
|
||||
| | | ptr:list of strings | none |
|
||||
|
||||
|
||||
|
||||
|
@ -409,7 +409,7 @@ target_link_libraries(test-getdisklist kydiskinfo)
|
|||
|--------|------|----------------------------------|-----------------------------------------|
|
||||
| get disk information | C | extern char** kdk_get_disklist() | Get a list of all disks in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char**, Each string represents the absolute path of a disk, ending with a NULL character |
|
||||
| | | none | char**, Each string represents the absolute path of a disk, ending with a NULL character |
|
||||
|
||||
|
||||
Free the list of disks returned by kdk_get_disklist
|
||||
|
@ -418,7 +418,7 @@ target_link_libraries(test-getdisklist kydiskinfo)
|
|||
|--------|------|------------------------------------------------|----------------------------|
|
||||
| get disk information | C | extern void kdk_free_disklist(char** disklist) | Free the list of disks returned by kdk_get_disklist |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | disklist :String pointer returned by kdk_get_disk_list | 无 |
|
||||
| | | disklist :String pointer returned by kdk_get_disk_list | none |
|
||||
|
||||
|
||||
|
||||
|
@ -439,7 +439,7 @@ target_link_libraries(test-getdisklist kydiskinfo)
|
|||
|--------|------|----------------------------------------------------|-------------------------------|
|
||||
| get disk information | C | extern void kdk_free_diskinfo(kdk_diskinfo *disk); | Release the disk information structure returned by kdk_get_diskinfo |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | disk:Structure pointer returned by kdk_get_diskinfo | 无 |
|
||||
| | | disk:Structure pointer returned by kdk_get_diskinfo | none |
|
||||
|
||||
|
||||
|
||||
|
@ -467,7 +467,7 @@ target_link_libraries(kybios-test kyhw)
|
|||
|--------|------|-------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_bios_get_vendor(); | Obtain bios vendor information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Successfully returns the bios manufacturer, fails and returns null |
|
||||
| | | none | Successfully returns the bios manufacturer, fails and returns null |
|
||||
|
||||
|
||||
|
||||
|
@ -477,7 +477,7 @@ target_link_libraries(kybios-test kyhw)
|
|||
|--------|------|--------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_bios_get_version(); | Get bios version information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Successfully returns the bios version, fails to return null |
|
||||
| | | none | Successfully returns the bios version, fails to return null |
|
||||
|
||||
|
||||
|
||||
|
@ -488,7 +488,7 @@ target_link_libraries(kybios-test kyhw)
|
|||
|--------|------|----------------------------------------|---------------|
|
||||
| get disk information | C | extern void kdk_bios_free(char* info); | Release the memory requested by the information acquisition interface |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | Get the pointer returned by the information interface | 无 |
|
||||
| | | Get the pointer returned by the information interface | none |
|
||||
|
||||
|
||||
|
||||
|
@ -515,7 +515,7 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|--------|------|------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_name(); | Get motherboard product name |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Successfully returns the product name of the mainboard, and fails to return null |
|
||||
| | | none | Successfully returns the product name of the mainboard, and fails to return null |
|
||||
|
||||
|
||||
|
||||
|
@ -526,7 +526,7 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|--------|------|------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_date(); | Get the motherboard production date |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | If it succeeds, it will return the production date of the motherboard, if it fails, it will return null |
|
||||
| | | none | If it succeeds, it will return the production date of the motherboard, if it fails, it will return null |
|
||||
|
||||
|
||||
Get the motherboard serial number
|
||||
|
@ -535,7 +535,7 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|--------|------|--------------------------------------------|--------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_serial(); | Get the motherboard serial number |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Returns the serial number of the motherboard successfully, and returns null if it fails |
|
||||
| | | none | Returns the serial number of the motherboard successfully, and returns null if it fails |
|
||||
|
||||
|
||||
Obtain motherboard manufacturer information
|
||||
|
@ -545,7 +545,7 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|--------|------|--------------------------------------------|---------------------|
|
||||
| get disk information | C | extern const char *kdk_board_get_vendor(); | Obtain motherboard manufacturer information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Successfully returns motherboard manufacturer information, fails to return null |
|
||||
| | | none | Successfully returns motherboard manufacturer information, fails to return null |
|
||||
|
||||
|
||||
|
||||
|
@ -556,7 +556,7 @@ target_link_libraries(kyboard-test kyhw)
|
|||
|--------|------|-----------------------------------------|---------------|
|
||||
| get disk information | C | extern void kdk_board_free(char* info); | Release the memory requested by the information acquisition interface |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | Get the pointer returned by the information interface | 无 |
|
||||
| | | Get the pointer returned by the information interface | none |
|
||||
|
||||
|
||||
|
||||
|
@ -585,7 +585,7 @@ target_link_libraries(kyusb-test kyhw)
|
|||
|--------|------|--------------------------------------------|----------------------------------------|
|
||||
| get disk information | C | extern pDriverInfoList kdk_usb_get_list(); | Get usb device information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | pDriverInfoList : The structure pointer of the usb device information, the specific information is self-obtained |
|
||||
| | | none | pDriverInfoList : The structure pointer of the usb device information, the specific information is self-obtained |
|
||||
|
||||
free memory
|
||||
|
||||
|
@ -594,7 +594,7 @@ target_link_libraries(kyusb-test kyhw)
|
|||
|--------|------|-------------------------------------------------|--------------|
|
||||
| get disk information | C | extern void kdk_usb_free(pDriverInfoList list); | Release the memory allocated when obtaining information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | list:kdk_usb_get_list()return pointer | 无 |
|
||||
| | | list:kdk_usb_get_list()return pointer | none |
|
||||
|
||||
|
||||
|
||||
|
@ -627,7 +627,7 @@ target_link_libraries(kypackage-test kypackage)
|
|||
|---------|------|--------------------------------------------------------|----------------------------------------------------------------------|
|
||||
| Get package list information | C | extern kdk_package_list* kdk_package_get_packagelist() | Get a list of all packages in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | kdk_package_list* package describe structure list; the returned structure needs to be recycled by kdk_package_free_packagelist() |
|
||||
| | | none | kdk_package_list* package describe structure list; the returned structure needs to be recycled by kdk_package_free_packagelist() |
|
||||
|
||||
|
||||
|
||||
|
@ -677,7 +677,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|------------------------------------------------------|-----------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_total_KiB() | Get the total size of physical memory in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Physical memory size, in KiB |
|
||||
| | | none | unsigned long Physical memory size, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -687,7 +687,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|--------------------------------------------------|---------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_res_usage_percent() | Get physical memory usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float physical memory usage |
|
||||
| | | none | float physical memory usage |
|
||||
|
||||
|
||||
|
||||
|
@ -698,7 +698,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|------------------------------------------------------|------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_usage_KiB() | Get the size of physical memory usage, note that Buffer/Cache is calculated as used memory |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Physical memory usage size, in KiB |
|
||||
| | | none | unsigned long Physical memory usage size, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -709,7 +709,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|----------------------------------------------------------|-------------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_available_KiB() | Get the actual available physical memory size,This value is approximately equal to Free + Buffer + Cache |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Available physical memory size, in KiB |
|
||||
| | | none | unsigned long Available physical memory size, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -719,7 +719,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|-----------------------------------------------------|---------------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_res_free_KiB() | Get the actual free physical memory size,Note that Buffer/Cache is counted as used memory |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Free physical memory size, in KiB |
|
||||
| | | none | unsigned long Free physical memory size, in KiB |
|
||||
|
||||
|
||||
Get the total amount of virtual memory requested by all applications
|
||||
|
@ -728,7 +728,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|-------------------------------------------------------|-------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_virt_alloc_KiB() | Get the total amount of virtual memory requested by all applications |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long The total application amount of virtual memory, in KiB |
|
||||
| | | none | unsigned long The total application amount of virtual memory, in KiB |
|
||||
|
||||
|
||||
Get the total size of the Swap partition in the system
|
||||
|
@ -738,7 +738,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|-------------------------------------------------------|-------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_total_KiB() | Get the total size of the Swap partition in the system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long SwapPartition size, in KiB |
|
||||
| | | none | unsigned long SwapPartition size, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -748,7 +748,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|---------------------------------------------------|-----------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_mem_swap_usage_percent() | Get Swap partition usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float Swap Partition usage |
|
||||
| | | none | float Swap Partition usage |
|
||||
|
||||
|
||||
|
||||
|
@ -758,7 +758,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|-------------------------------------------------------|--------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_usage_KiB() | Get Swap partition usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Swap partition usage, in KiB |
|
||||
| | | none | unsigned long Swap partition usage, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -769,7 +769,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|------------------------------------------------------|---------------------------------|
|
||||
| Get resource information | C | extern unsigned long kdk_rti_get_mem_swap_free_KiB() | Get free size of Swap partition |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned long Swap partition free size, in KiB |
|
||||
| | | none | unsigned long Swap partition free size, in KiB |
|
||||
|
||||
|
||||
|
||||
|
@ -780,7 +780,7 @@ target_link_libraries(kyrtinfo-test kyrtinfo)
|
|||
|--------|------|----------------------------------------------|--------------------------|
|
||||
| Get resource information | C | extern float kdk_rti_get_cpu_current_usage() | Get the instantaneous CPU usage |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | float Instantaneous CPU usage, the value < 1.00 |
|
||||
| | | none | float Instantaneous CPU usage, the value < 1.00 |
|
||||
|
||||
|
||||
Get the operating system boot time
|
||||
|
@ -941,14 +941,14 @@ target_link_libraries(kysysinfo-test kysysinfo)
|
|||
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|------|------------------------------------------------------|----------------------------------------------------------------------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_architecture() | Get system architecture information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* system architecture, for example: x86_64 | |
|
||||
| | | none | char* system architecture, for example: x86_64 | |
|
||||
|
||||
Get OS name
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_systemName() | Get OS name |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* system name, for example: Kylin | |
|
||||
| | | none | char* system name, for example: Kylin | |
|
||||
|
||||
Get the operating system version number
|
||||
| submodule | Programming language | statement | describe |
|
||||
|
@ -962,63 +962,63 @@ target_link_libraries(kysysinfo-test kysysinfo)
|
|||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_kernelVersion() | Get the kernel version number |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* | kernel version number | |
|
||||
| | | none | char* | kernel version number | |
|
||||
|
||||
Get the username of the currently logged in user
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_eUser() | Get the username of the currently logged in user(Effect User) |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
| | | none | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
|
||||
Get operating system item number name
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_projectName() | Get operating system item number name |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
| | | none | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
|
||||
Get OS project subnumber name
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_projectSubName() | Get OS project subnumber name |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
| | | none | char* returns a string on success, and NULL on failure. The returned string needs to be freed | |
|
||||
|
||||
Obtain the operating system product identification code
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern unsigned int kdk_system_get_productFeatures() | Obtain the operating system product identification code |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | unsigned int return flag code <br> 0000: abnormal information <br> 0001: only PC features <br> 0010: only tablet features <br> 0011: support tablet and PC features |
|
||||
| | | none | unsigned int return flag code <br> 0000: abnormal information <br> 0001: only PC features <br> 0010: only tablet features <br> 0011: support tablet and PC features |
|
||||
|
||||
Obtain the virtual machine type of the operating system host
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_hostVirtType() | Obtain the virtual machine type of the operating system host |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* returns NULL if the acquisition fails, and returns a string if the acquisition succeeds. The content of the string is as follows: <br> [none, qemu, kvm, zvm, vmware,hyper-v, orcale virtualbox, xen, bochs, uml,parallels,bhyve,qnx,arcn,openvz,lxc,lxc-libvirt,systemd-nspawn,docker,podman,rkt,wsl] |
|
||||
| | | none | char* returns NULL if the acquisition fails, and returns a string if the acquisition succeeds. The content of the string is as follows: <br> [none, qemu, kvm, zvm, vmware,hyper-v, orcale virtualbox, xen, bochs, uml,parallels,bhyve,qnx,arcn,openvz,lxc,lxc-libvirt,systemd-nspawn,docker,podman,rkt,wsl] |
|
||||
|
||||
Obtain the cloud platform type of the operating system host
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char* kdk_system_get_hostCloudPlatform() | Obtain the cloud platform type of the operating system host |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char* returns NULL if the acquisition fails, and returns a string if the acquisition succeeds. The content of the string is as follows: <br> [none, huawei] |
|
||||
| | | none | char* returns NULL if the acquisition fails, and returns a string if the acquisition succeeds. The content of the string is as follows: <br> [none, huawei] |
|
||||
|
||||
Determine whether the current operating system is a dedicated machine system
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern bool kdk_system_is_zyj(void) | Determine whether the current mirroring system is a dedicated machine system |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | bool <br> true means yes <br> false means no |
|
||||
| | | none | bool <br> true means yes <br> false means no |
|
||||
|
||||
Get system resolution information
|
||||
| submodule | Programming language | statement | describe |
|
||||
|--------|------|----------------------------------------------------|----------------|
|
||||
| Get basic system information | C | extern char** kdk_system_get_resolving_power() | Get system resolution information |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | char** Resolution information list, ending with NULL, generated by alloc, needs to be reclaimed by kdk_resolving_freeall; if there is an error in obtaining, return NULL; | |
|
||||
| | | none | char** Resolution information list, ending with NULL, generated by alloc, needs to be reclaimed by kdk_resolving_freeall; if there is an error in obtaining, return NULL; | |
|
||||
|
||||
list of recycled strings
|
||||
| submodule | Programming language | statement | describe |
|
||||
|
@ -1139,7 +1139,7 @@ target_link_libraries(locationtest kylocation)
|
|||
|----------|------|----------------------------------|----------------|
|
||||
| Get basic system information | C | extern char *kdk_loaction_get(); | Get the location of this machine |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | Describe the json string of the geographic location |
|
||||
| | | none | Describe the json string of the geographic location |
|
||||
|
||||
|
||||
|
||||
|
@ -1242,7 +1242,7 @@ target_link_libraries(locationtest kylocation)
|
|||
|------------|----------|---------------------------------------|------------------------|
|
||||
| printer management | C | extern char** kdk_printer_get_list(); | Get a list of printers |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | char ** System Printer List |
|
||||
| | | none | char ** System Printer List |
|
||||
|
||||
Get a list of available printers on the system
|
||||
|
||||
|
@ -1250,7 +1250,7 @@ target_link_libraries(locationtest kylocation)
|
|||
|------------|----------|-------------------------------------------------|------------------------|
|
||||
| printer management | C | extern char** kdk_printer_get _availablelist(); | Get a list of available printers |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | char ** System Printer List |
|
||||
| | | none | char ** System Printer List |
|
||||
|
||||
Set print parameters
|
||||
|
||||
|
@ -1258,7 +1258,7 @@ Set print parameters
|
|||
|------------|----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------|
|
||||
| printer management | C | extern void kdk_printer_set_options(int number_up,const char *media,const char *number_up_layout,const char *sides); | Set print parameters |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | number_up:Print several pages on one paper<br>media: paper type<br>number_up_layout: cups attribute, such as lrtb<br>sides: single-sided one-sided, double-sided (long side flip): two_sided_long_dege<br>double-sided (short flip side):<br> two_sided_short_dege | 无 |
|
||||
| | | number_up:Print several pages on one paper<br>media: paper type<br>number_up_layout: cups attribute, such as lrtb<br>sides: single-sided one-sided, double-sided (long side flip): two_sided_long_dege<br>double-sided (short flip side):<br> two_sided_short_dege | none |
|
||||
|
||||
print documents
|
||||
| submodule | Programming language | statement | describe |
|
||||
|
@ -2431,7 +2431,7 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
|
|||
|------|------|--------------------------------------------------------------------------------------------------|--------------------|
|
||||
| log module | C++ | static void logOutput(QtMsgType type , const QMessageLogContext &context , const QString &msg); | Used by Qt to register logging functions and should not be called alone. |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | type:Log type context: call print log interface file information msg: log information | 无 |
|
||||
| | | type:Log type context: call print log interface file information msg: log information | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2450,7 +2450,7 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
|
|||
|------|------|------------------------------------------|------------|
|
||||
| window tube module | C++ | static bool setScalingProperties(void); | Set window scaling properties |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | success : true |
|
||||
| | | none | success : true |
|
||||
| | | | fail : false |
|
||||
|
||||
| submodule | Programming language | statement | describe |
|
||||
|
@ -2509,7 +2509,7 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
|
|||
|--------|------|-----------------------------------|--------------------------|
|
||||
| System Information Module | C++ | QString getProjectCodeName(void) | Get the value of the PROJECT_CODENAME field |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | empty : failed |
|
||||
| | | none | empty : failed |
|
||||
| | | | non-empty: the obtained value |
|
||||
|
||||
|
||||
|
@ -2519,7 +2519,7 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
|
|||
|--------|------|--------------------------------|------------|
|
||||
| System Information Module | C++ | QString getCpuModelName(void) | Get CPU model |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | empty : failed |
|
||||
| | | none | empty : failed |
|
||||
| | | | non-empty: the obtained value |
|
||||
|
||||
|
||||
|
@ -2529,7 +2529,7 @@ target_link_libraries(demo Qt5::Widgets ${KYSDKWAYLANDHELPER_PKG_LIBRARIES})
|
|||
|--------|------|-------------------------------|------------|
|
||||
| System Information Module | C++ | QString getHdPlatform(void); | Obtain hardware platform information |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | 无 | empty : failed |
|
||||
| | | none | empty : failed |
|
||||
| | | | non-empty: the obtained value |
|
||||
|
||||
|
||||
|
@ -2611,7 +2611,7 @@ target_link_libraries(kylog-testpressure kylog)
|
|||
|-----|------|-------------|--------------------------------|
|
||||
| log | C | extern void | kdk_logger_flush() DESTRUCTOR; | In the asynchronous writing mode, you can call this function to manually write the logs in the buffer to the file |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 无 |
|
||||
| | | none | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2632,7 +2632,7 @@ target_link_libraries(kylog-testpressure kylog)
|
|||
|-----|------|---------------------------------------------------|------------|
|
||||
| log | C | extern void kdk_logger_set_autowrap(int autowarp) | Set log output to wrap automatically |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | autowarp:1 means start line wrapping is enabled, 0 means automatic line wrapping is disabled | 无 |
|
||||
| | | autowarp:1 means start line wrapping is enabled, 0 means automatic line wrapping is disabled | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2668,7 +2668,7 @@ target_link_libraries(test-kytimer kytimer)
|
|||
|-----|------|----------------------|------------------|
|
||||
| timer | C | int kdk_timer_init() | Initialize the timer core component |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | int,0 means success, non-zero means failure |
|
||||
| | | none | int,0 means success, non-zero means failure |
|
||||
|
||||
|
||||
> start timer
|
||||
|
@ -2694,7 +2694,7 @@ target_link_libraries(test-kytimer kytimer)
|
|||
|-----|------|-------------------------------------|----------|
|
||||
| timer | C | void kdk_timer_stop(size_t timerfd) | stop the given timer |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | timerfd:Timer ID returned by kdk_timer_start: | 无 |
|
||||
| | | timerfd:Timer ID returned by kdk_timer_start: | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2705,7 +2705,7 @@ target_link_libraries(test-kytimer kytimer)
|
|||
|-----|------|--------------------------|-------|
|
||||
| timer | C | void kdk_timer_destroy() | destroy timer |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | 无 |
|
||||
| | | none | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2716,7 +2716,7 @@ target_link_libraries(test-kytimer kytimer)
|
|||
|-----|------|----------------------------------------------------------------|-------|
|
||||
| timer | C | void kdk_timer_reset(size_t timerfd , unsigned int intervalms) | reset timer |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | timerfd:Timer ID returned by kdk_timer_start | 无 |
|
||||
| | | timerfd:Timer ID returned by kdk_timer_start | none |
|
||||
| | | intervalms:The time interval that needs to be adjusted, in ms | |
|
||||
|
||||
|
||||
|
@ -2754,7 +2754,7 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
|
|||
|----------|------|-----------------------------------------|--------------------|
|
||||
| C language string extension | C | static inline void str2lower(char *str) | Converts all uppercase letters in a string to lowercase |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | str:A pointer to the string to operate on | 无 |
|
||||
| | | str:A pointer to the string to operate on | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2765,7 +2765,7 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
|
|||
|----------|------|-----------------------------------------|---------------------|
|
||||
| C language string extension | C | static inline void str2upper(char *str) | Convert all lowercase letters in a string to uppercase |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | str:A pointer to the string to operate on | 无 |
|
||||
| | | str:A pointer to the string to operate on | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2822,7 +2822,7 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
|
|||
|----------|------|---------------------------------------------|--------------------------------------|
|
||||
| C language string extension | C | static inline void strstripblank(char *str) | Delete spaces and horizontal tabs (tab) before and after the given string, note that this operation will modify the original string |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | str:String pointer to modify | 无 |
|
||||
| | | str:String pointer to modify | none |
|
||||
|
||||
|
||||
|
||||
|
@ -2867,7 +2867,7 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
|
|||
|----------|------|-------------------------------------------------|--------------------------------------------|
|
||||
| C language string extension | C | static inline void strstrip(char *str, char ch) | Perform a strip operation on a given string, and delete the specified characters before and after the string; note that this operation will modify the original string |
|
||||
| | | Parameter Description | Return value description |
|
||||
| | | str:The pointer to the string that needs to be stripped | 无 |
|
||||
| | | str:The pointer to the string that needs to be stripped | none |
|
||||
| | | ch:characters to delete | |
|
||||
|
||||
|
||||
|
@ -2890,7 +2890,7 @@ $ sudo apt-get install libkysdk-utils libkysdk-utils-dev
|
|||
|----------|------|---------------------------------------------|-----------------------------------|
|
||||
| C language string extension | C | static inline void strstripspace(char *str) | Delete spaces, tabs, and newlines before and after the given string. Note that this operation will modify the original string |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | str:A pointer to a string that needs to be stripped | 无 |
|
||||
| | | str:A pointer to a string that needs to be stripped | none |
|
||||
|
||||
|
||||
## **5.4** Linked list module
|
||||
|
@ -2932,7 +2932,7 @@ target_link_libraries(test-search kydatastruct)
|
|||
| submodule | Programming language | statement | describe |
|
||||
| linked list | C | extern kysdk_skiplist* kysdk_create_skiplist() | Create skip list |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | 无 | kysdk_skiplist* jump table |
|
||||
| | | none | kysdk_skiplist* jump table |
|
||||
|
||||
|
||||
> destroy jump list
|
||||
|
@ -2943,7 +2943,7 @@ target_link_libraries(test-search kydatastruct)
|
|||
| submodule | Programming language | statement | describe |
|
||||
| linked list | C | extern void kysdk_destroy_skiplist(kysdk_skiplist *list) | Destroy the jump list and reclaim all allocated memory; note that the memory pointed to by data.ptr (if it exists) will not be released |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | list:jump table | 无 |
|
||||
| | | list:jump table | none |
|
||||
|
||||
|
||||
|
||||
|
@ -3040,7 +3040,7 @@ target_link_libraries(kyconf-test-struct kyconf kylog pthread)
|
|||
|--------|------|--------------------------------------|-------------|
|
||||
| Profile Operations | C | extern void kdk_conf_destroy(int id) | Destroys the specified profile handle |
|
||||
| | | Parameter Description | Return value description | |
|
||||
| | | id:The configuration file handle returned by kdk_conf_init | 无 |
|
||||
| | | id:The configuration file handle returned by kdk_conf_init | none |
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue