Code Monkey home page Code Monkey logo

Comments (3)

samtertzakian avatar samtertzakian commented on May 18, 2024

The purpose of DMF_Template.c is two-fold: 1. Provide a template for a new Module. 2. Provide function signatures for the different callbacks.

The Samples solution and projects only contain Client drivers that use DMF. Those drivers use either DMF Library directly, or use the DMF Template Library (and the DMF Library indirectly). The Sample solution does not contain any Modules or Module Libraries. Modules and Module Libraries should go in the DMF Solution.

People what want their own Module Libraries generally will create a sperate DMF Solution that contains just their own private Modules and Module Libraries they write. And separately, they will have Client drivers that link to those Libraries (and DMF Libraries indirectly).

Another option is that they can have a single solution that contains their Module Library as well as their own Client drivers that link to their private Module Libraries.

Here is how DMF looks as distributed:

"DMF Core"
"DMF Library"
"DMF Template Library"

Client can write a new Module Library (DMF Private Library) that links to "DMF Library" in the same way the "DMF Template Library" links to "DMF Library".

The Vendor (you) should not add "DMF Private Library" to DMF Solution because when we update DMF the Client would need to update DMF Solution every time. For this reason it is best for the Vendor to create a separate solution for "DMF Private Library". The Vendor can also add the Vendor's Client drivers to that solution.

Let me know if that is not clear.

from dmf.

hansmbakker avatar hansmbakker commented on May 18, 2024

Hi Sam,
my point was just that I was wondering whether the Modules.Template project should be in the Dmf.sln solution rather than in a separate solution or in the DmfSamples.sln solution.

The purpose of the various parts is clear to me.

Personally I created a private library in a separate solution together with the client driver, that works well for me.

from dmf.

samtertzakian avatar samtertzakian commented on May 18, 2024

Hi, Hans,
From our point of view, it is best to have Template in the DMF solution since the Template project shows how to write Modules/Module Libraries that are similar to the other projects. The Samples solution uses the Template project. I think we can clarify this by doing either of two things:

  1. Renaming "Template" to "Templates and Samples"
  2. Making another Library that just has "Samples" so we would have "Templates" and "Samples".
    I think moving Template to Sample drivers, however, is not a good option.
    Let me mull it over with coworkers and get back to you.
    Thank you for your suggestion, however.

from dmf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.