openwrt / openwrt/libubox

Need convenience functions to aid in usage, development

Open
#17 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
32
Forks
35
PR merge metrics
No merged PRs in 30d

Description

The following functions would be useful:

  • getting the cursor position into a variable
  • setting the cursor position from a variable
  • getting the parent position into a variable
  • getting the path (path) of the current cursor
  • getting the name of the current node
  • add anonymous strings to arrays
  • get the index of an entry being added to an array

JSON isn't necessarily generated in a linear fashion per the source information being parsed to synthesize it. Therefore, being able to randomly access placekeepers in the tree would be useful. Note: it's not clear how to address unnamed objects.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by locating the cursor, parent-position, path, node-name, and array APIs in the C JSON/tree implementation, then clarify how unnamed objects should behave. Done means the requested convenience operations have defined behavior and coverage for their intended use cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.