Giter Club home page Giter Club logo

Comments (3)

Conan-Kudo avatar Conan-Kudo commented on August 16, 2024

@Bob131 This is absolutely the right time to mention this! libdnf does not yet have a fixed API, and that will only occur once its first release is made.

from libdnf.

j-mracek avatar j-mracek commented on August 16, 2024

Please if the issue is still valid, please could you open the new bugzilla with updated information like what kind of informition you are interest for which purpose?

from libdnf.

Bob131 avatar Bob131 commented on August 16, 2024
  • DnfRepo is declared as a derivable type, but to get a functioning instance dnf_repo_new must be called since it sets a private field. Either DnfRepo needs to be a final type or context made a construct property.
  • DnfRepo has (at least) 11 getter/setter pairs that ought to be properties:
    • dnf_repo_{get,set}_id
    • dnf_repo_{get,set}_location
    • dnf_repo_{get,set}_filename
    • dnf_repo_{get,set}_packages
    • dnf_repo_{get,set}_enabled
    • dnf_repo_{get,set}_required
    • dnf_repo_{get,set}_cost
    • dnf_repo_{get,set}_module_hotfixes
    • dnf_repo_{get,set}_kind
    • dnf_repo_{get,set}_gpgcheck
    • dnf_repo_{get,set}_gpgcheck_md

As mentioned above, properties bring many benefits: notify signals, GBindings, property overrides, better GI bindings, convenience functions like g_object_set, etc. For instance, I have a use case for which it would be convenient to be able to bind the enabled property of several repo objects together.

  • DnfPackage is declared as a derivable type, but to get a functioning instance dnf_package_new must be called since it sets private fields. Either DnfPackage needs to be a final type or sack and id made construct properties.

  • DnfContext also has a large number of get/set functions. Being able to set/get more than one property at a time with g_object_{set,get} would be espeically handy for an object like DnfContext, but the other above-mentioned benefits also apply here.

from libdnf.

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.