Signature
native get_plugin(index, filename[] = "", len1 = 0, name[] = "", len2 = 0, version[] = "", len3 = 0, author[] = "", len4 = 0, status[] = "", len5 = 0, ...);
Description
Retrieves info about a plugin by plugin index.
Parameters
- index — Plugin index, -1 to target calling plugin
- filename — Buffer to copy plugin filename to
- len1 — Maximum filename buffer size
- name — Buffer to copy plugin name to
- len2 — Maximum name buffer size
- version — Buffer to copy plugin version to
- len3 — Maximum version buffer size
- author — Buffer to copy plugin author to
- len4 — Maximum author buffer size
- status — Buffer to copy plugin status flags to
- len5 — Maximum status buffer size
- ... — Unused and ignored
Returns
Plugin index on success, -1 if there is no plugin with given
index