����� ������������ OpenNet.ru / ������ "������������ ��� Linux" / ������

15.2.5. ��������� ����� ��������� ������ rpm

C-���������� RPM ������ ���������� popt ��� ��������� ����� ��������� ������ ������� rpm. ������� ���������� RPM, ��������, rpmcliInit, ������� ������������� ��������� ��������� ������ rpm, ������� ������� ����� ������� � ������� �����, ������� ���������� ����� ��������� ������ ��� ����� ���������.

��� ��������� ������� ���������, �������������� ����������� ����� ��������� ������ rpm, ����������� ���������� ��������� ������� �����:

static struct poptOption optionsTable[] = {

{ NULL, '\0', POPT_ARG_INCLUDE_TABLE, rpmcliAllPoptTable, 0,

"Common options for all rpm modes and executables:",

NULL },

POPT_AUTOALIAS

POPT_AUTOHELP

POPT_TABLEEND

};

����� ��������������� ���� ��������� � ������� ������ rpmcliInit:

poptContext rpmcliInit(int argc, char *const argv[],

struct poptOption * optionsTable);

��� ������ rpmcliInit ��������������� ��� ���������� ��� ����������� ����� ��������� ������ rpm.

��������, ����� ������� �������� ����� ��������������, ����� ������� rpmIsVerbose:

int rpmIsVerbose();

����� ����, ��� ���������, ������������ rpmcliInit, ��������� ������, �������� rpmcliFini ��� ������� ���������� ������:

poptContext rpmcliFini(poptContext context);

rpmcliFini ���������� NULL.

����� - ������ � rpm-�������
����� - ���������� ������
����������


����� ������������ �� OpenNet.ru