Jump to content

Plugin Dependencies - Bad Form?


Recommended Posts

Posted

Hi Programmers - First post, be gentle!

 

I'm dabbling with a new plugin related to VMs, and learning as I go. Looking at the Dynamix-VM-Manager plugin, there's a bunch of functions buried in helper includes that are perfect for what I need to do (generating lists of GPU, USB and PCI devices).

 

Just wondering if it's considered good practice or bad form to call such functions directly from within my own plugin. Otherwise, I'd need to spend a lot of time writing exactly the same thing myself.

 

Advice appreciated.

 

 

Posted
1 hour ago, meep said:

Hi Programmers - First post, be gentle!

 

I'm dabbling with a new plugin related to VMs, and learning as I go. Looking at the Dynamix-VM-Manager plugin, there's a bunch of functions buried in helper includes that are perfect for what I need to do (generating lists of GPU, USB and PCI devices).

 

Just wondering if it's considered good practice or bad form to call such functions directly from within my own plugin. Otherwise, I'd need to spend a lot of time writing exactly the same thing myself.

 

Advice appreciated.

 

 

CA / FCP does this very extensively (with the dynamix.docker.manager and dynamix.plugin.manager) 

 

Only thing you have to be aware of is that there is no guarantee that the functions you want don't change from unRaid version to version.  Although this is very rare.

  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...